From 59151542b9551a5e294f0baa79b3c0e0b66a9a9d Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 20 Apr 2004 22:19:17 +0000 Subject: [PATCH] Let's ignore HUP when daemonized. --- scripts/supybot | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/supybot b/scripts/supybot index 1c6b96111..d4382d2d0 100755 --- a/scripts/supybot +++ b/scripts/supybot @@ -385,6 +385,7 @@ if __name__ == '__main__': sys.stderr.close() sys.stdout = StringIO.StringIO() sys.stderr = StringIO.StringIO() + signal.signal(signal.SIGHUP, signal.SIG_IGN) log.info('Completed daemonization. Current PID: %s', os.getpid()) # Let's write the PID file. This has to go after daemonization, obviously.