From 9da0122b5ef48b265d439ca2ca9a427464735a99 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 24 Oct 2004 08:53:31 +0000 Subject: [PATCH] ignore SIGHUP + reenable fork --- scripts/mailman/mailman-rpc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/mailman/mailman-rpc.py b/scripts/mailman/mailman-rpc.py index c42024f..bd3f76d 100755 --- a/scripts/mailman/mailman-rpc.py +++ b/scripts/mailman/mailman-rpc.py @@ -18,10 +18,10 @@ #* Foundation, Inc., * #* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * #*************************************************************************** -# $Id: mailman-rpc.py,v 1.63 2004-10-16 11:39:38 x2000habouzit Exp $ +# $Id: mailman-rpc.py,v 1.64 2004-10-24 08:53:31 x2000habouzit Exp $ #*************************************************************************** -import base64, MySQLdb, os, getopt, sys, MySQLdb.converters, sha +import base64, MySQLdb, os, getopt, sys, MySQLdb.converters, sha, signal sys.path.append('/usr/lib/mailman/bin') @@ -763,14 +763,14 @@ if not os.getuid(): os.setregid(gid,gid) os.setreuid(uid,uid) +signal.signal(signal.SIGHUP, signal.SIG_IGN) + if ( os.getuid() is not uid ) or ( os.getgid() is not gid): sys.exit(0) opts, args = getopt.getopt(sys.argv[1:], 'f') for o, a in opts: -#-------------------------------------------------- -# if o == '-f' and os.fork(): -#-------------------------------------------------- + if o == '-f' and os.fork(): sys.exit(0) mysql = connectDB() -- 2.1.4