Browse Source

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.

Mike Frysinger 16 years ago
parent
commit
ea0dcba922
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/misc/syslog/syslog.c

+ 1 - 1
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);
 	}
     }