Commit 189aafbb authored by Marco Mariani's avatar Marco Mariani

postfix: patch to skip setsid()

parent d81096b0
......@@ -20,6 +20,7 @@ POSTFIX_TGZ_TARGET := \
$(P4_ROOT)/ThirdPartyBuilds/$(BUILD_PLATFORM)/postfix/postfix-$(POSTFIX_VERSION).tgz
BDB_PATCH := patch -g0 -p1 < ../patches/postfix-zimbra-bdb.patch;
NOROOT_PATCH := patch -g0 -p1 < ../patches/noroot.patch;
SESSION_PATCH := patch -g0 -p1 < ../patches/session.patch;
PCRE_DEF := -DHAS_PCRE
PCRE_INCLUDE := -I$(PCRE_PREFIX)/include
......@@ -50,6 +51,7 @@ build:
cd postfix-$(POSTFIX_VERSION); \
$(BDB_PATCH) \
$(NOROOT_PATCH) \
$(SESSION_PATCH) \
$(PATCH) \
patch -g0 -p1 < ../patches/postfix-main-cf-zimbra.patch; \
$(MAKE) $(MAKEARGS) makefiles \
......
--- a/src/master/master.c
+++ b/src/master/master.c
@@ -392,8 +392,10 @@ int main(int argc, char **argv)
* all MTA processes cleanly. Give up if we can't separate from our
* parent process. We're not supposed to blow away the parent.
*/
+ /*
if (debug_me == 0 && master_detach != 0 && setsid() == -1 && getsid(0) != getpid())
msg_fatal("unable to set session and process group ID: %m");
+ */
/*
* Make some room for plumbing with file descriptors. XXX This breaks
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment