]> git.pld-linux.org Git - packages/postfix.git/blob - postfix-setsid.patch
- rel 2
[packages/postfix.git] / postfix-setsid.patch
1 diff -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.093806 seconds and 3 git commands to generate.