Call setprgp is not fatal if it fails

This commit is contained in:
Michiel Broek 2008-03-09 12:21:26 +00:00
parent 1fe9b667ba
commit 3059b33636
2 changed files with 9 additions and 3 deletions

View File

@ -13,6 +13,9 @@ v0.91.2 17-Feb-2008
install hatch.new to hatch in the bin directory and set the install hatch.new to hatch in the bin directory and set the
password again, this script will not automatic install. password again, this script will not automatic install.
mbtask:
Call setprgp is not fatal if it fails.
v0.95.1 07-Jan-2008 - 17-Feb-2008. v0.95.1 07-Jan-2008 - 17-Feb-2008.

View File

@ -4,7 +4,7 @@
* Purpose ...............: MBSE BBS Task Manager * Purpose ...............: MBSE BBS Task Manager
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2007 * Copyright (C) 1997-2008
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -1672,8 +1672,11 @@ int main(int argc, char **argv)
* associated with that terminal as its control terminal. * associated with that terminal as its control terminal.
*/ */
if ((pgrp = setpgid(0, 0)) == -1) { if ((pgrp = setpgid(0, 0)) == -1) {
Syslog('?', "$setpgid failed"); Syslog('t', "$setpgid failed");
die(MBERR_INIT_ERROR); /*
* Just log this, some SElinux versions don't allow it.
*/
// die(MBERR_INIT_ERROR);
} }
frk = fork(); frk = fork();