]> git.pld-linux.org Git - packages/postfix.git/blame - postfix-setsid.patch
- release 3 (db 4.2 rebuild)
[packages/postfix.git] / postfix-setsid.patch
CommitLineData
1045b712
JK
1diff -dur -x '*~' postfix-2.2.3.orig/src/master/master.c postfix-2.2.3/src/master/master.c
2--- postfix-2.2.3.orig/src/master/master.c 2005-02-15 01:36:58.000000000 +0100
3+++ postfix-2.2.3/src/master/master.c 2005-06-01 09:55:35.000000000 +0200
4@@ -289,8 +289,8 @@
5 * all MTA processes cleanly. Give up if we can't separate from our
6 * parent process. We're not supposed to blow away the parent.
7 */
8- if (debug_me == 0 && setsid() == -1)
9- msg_fatal("unable to set session and process group ID: %m");
10+ if (debug_me == 0 && setsid() == -1 && getsid(0) != getpid())
11+ msg_fatal("unable to set session and process group ID: %m (pid=%d, sid=%d)", (int)getpid(), (int)getsid(0));
12
13 /*
14 * Make some room for plumbing with file descriptors. XXX This breaks
This page took 0.639772 seconds and 4 git commands to generate.