SOURCES: mailman-daemonize-fds.patch (NEW) - close std fds so ssd could det...
glen
glen at pld-linux.org
Fri Mar 6 14:04:57 CET 2009
Author: glen Date: Fri Mar 6 13:04:57 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- close std fds so ssd could detach from terminal
---- Files affected:
SOURCES:
mailman-daemonize-fds.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/mailman-daemonize-fds.patch
diff -u /dev/null SOURCES/mailman-daemonize-fds.patch:1.1
--- /dev/null Fri Mar 6 14:04:58 2009
+++ SOURCES/mailman-daemonize-fds.patch Fri Mar 6 14:04:51 2009
@@ -0,0 +1,15 @@
+--- mailman-2.1.11/bin/mailmanctl~ 2009-03-06 15:02:12.706376997 +0200
++++ mailman-2.1.11/bin/mailmanctl 2009-03-06 14:55:45.366717626 +0200
+@@ -480,6 +480,12 @@
+ os.chdir(mm_cfg.PREFIX)
+ # Set our file mode creation umask
+ os.umask(007)
++ # Redirect the standard file descriptors to /dev/null.
++ nullfd = os.open("/dev/null", os.O_RDWR|os.O_APPEND)
++ os.dup2(nullfd, 0);
++ os.dup2(nullfd, 1);
++ os.dup2(nullfd, 2);
++ os.close(nullfd)
+ # I don't think we have any unneeded file descriptors.
+ #
+ # Now start all the qrunners. This returns a dictionary where the
================================================================
More information about the pld-cvs-commit
mailing list