The branch, master has been updated via 20537d6... s3-pidfile: set the close on exec flag for the created pidfiles. from d6a73ad... s3-spoolss: Removed the Phantom DeviceMode.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 20537d65166714f083256cf4f48b96d35786253a Author: Günther Deschner <g...@samba.org> Date: Mon May 17 18:22:37 2010 +0200 s3-pidfile: set the close on exec flag for the created pidfiles. Guenther ----------------------------------------------------------------------- Summary of changes: source3/lib/pidfile.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c index 2c52d12..a3e39db 100644 --- a/source3/lib/pidfile.c +++ b/source3/lib/pidfile.c @@ -145,6 +145,9 @@ void pidfile_create(const char *program_name) } /* Leave pid file open & locked for the duration... */ SAFE_FREE(name); + + /* set the close on exec so that we don't leak the fd */ + fcntl(fd, F_SETFD, FD_CLOEXEC); } void pidfile_unlink(void) -- Samba Shared Repository