OSDN Git Service

krichy writes in 292:
authorMike Frysinger <vapier@gentoo.org>
Sat, 5 Jan 2008 07:16:35 +0000 (07:16 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 5 Jan 2008 07:16:35 +0000 (07:16 -0000)
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

index 0a5c48f..d881af6 100644 (file)
@@ -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);
        }
     }