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

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