From 45cb5bb3c0e6edb887cf69b417fcaf7053814a9b Mon Sep 17 00:00:00 2001 From: Aron Xu Date: Tue, 20 Dec 2016 20:06:37 +0800 Subject: Imported Upstream version 1.4.4 --- src/main-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main-utils.c') diff --git a/src/main-utils.c b/src/main-utils.c index c2ed9d1c..6497ea25 100644 --- a/src/main-utils.c +++ b/src/main-utils.c @@ -94,7 +94,7 @@ nm_main_utils_write_pidfile (const char *pidfile) int fd; gboolean success = FALSE; - if ((fd = open (pidfile, O_CREAT|O_WRONLY|O_TRUNC, 00644)) < 0) { + if ((fd = open (pidfile, O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 00644)) < 0) { fprintf (stderr, _("Opening %s failed: %s\n"), pidfile, strerror (errno)); return FALSE; } -- cgit 1.3.0-6-gf8a5