1
1

change process group only in bproc case, as this is really

a workaround for a bproc4 bug

This commit was SVN r9064.
Этот коммит содержится в:
Tim Woodall 2006-02-16 16:19:37 +00:00
родитель c07e84cf6d
Коммит 039fe0ad29
2 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -403,6 +403,14 @@ int orte_pls_bproc_orted_launch(orte_jobid_t jobid) {
}
#endif
/**
* hack for bproc4, change process group so that we do not receive signals
* from the parent/front-end process, as bproc4 does not currently allow the
* process to intercept the signal
*/
setpgid(0,0);
/* get current node number */
rc = bproc_currnode();
if(0 > rc) {
opal_output(0, "pls_bproc_orted component running on invalid node");

Просмотреть файл

@ -286,10 +286,8 @@ int main(int argc, char *argv[])
}
/* Set signal handlers to catch kill signals so we can properly clean up
* after ourselves. Set new process group so that we don't receive signals
* from controlling terminal/parent.
* after ourselves.
*/
setpgid(0,0);
opal_event_set(&term_handler, SIGTERM, OPAL_EV_SIGNAL,
signal_callback, NULL);
opal_event_add(&term_handler, NULL);