From 3059b3363613a14d230e4fe24502a1687ea23dcb Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 9 Mar 2008 12:21:26 +0000 Subject: [PATCH] Call setprgp is not fatal if it fails --- ChangeLog | 3 +++ mbtask/mbtask.c | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f900f11..09c1eb2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ v0.91.2 17-Feb-2008 install hatch.new to hatch in the bin directory and set the 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. diff --git a/mbtask/mbtask.c b/mbtask/mbtask.c index 2a2c052c..20611d16 100644 --- a/mbtask/mbtask.c +++ b/mbtask/mbtask.c @@ -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();