Explorar o código

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 %!s(int64=18) %!d(string=hai) anos
pai
achega
ea0dcba922
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 	}
     }