瀏覽代碼

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 年之前
父節點
當前提交
ea0dcba922
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
 	}
     }