From ea0dcba922677916927075ccdd4f65e4764de3d5 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sat, 5 Jan 2008 07:16:35 +0000
Subject: krichy writes in 292: I noticed, that in libc/misc/syslog/syslog.c
 when the syslog socket is opened, the close-on-exec flag is not set, as it is
 in gnu libc.

This enables that behavior.
---
 libc/misc/syslog/syslog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'libc')

diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 0a5c48f86..d881af682 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -165,7 +165,7 @@ retry:
 	    if ((LogFile = socket(AF_UNIX, logType, 0)) == -1) {
 		goto DONE;
 	    }
-	    /*			fcntl(LogFile, F_SETFD, 1); */
+	    fcntl(LogFile, F_SETFD, 1);
 	}
     }
 
-- 
cgit v1.2.3