From 4f082c7df3998cdc2cdf9845a62d886d05257cb8 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 30 Apr 2014 02:56:02 +0200 Subject: Remove now unneeded FD_CLOEXEC flag config --- src/fastd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index 191c82d..709f55f 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -510,7 +510,6 @@ static int daemonize(void) { } else { /* child 2 */ - fastd_setfd(pipefd[1], FD_CLOEXEC); return pipefd[1]; } } @@ -524,7 +523,7 @@ static void notify_systemd(const char *notify_socket) { if ((notify_socket[0] != '@' && notify_socket[0] != '/') || notify_socket[1] == 0) return; - fd = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0); + fd = socket(AF_UNIX, SOCK_DGRAM, 0); if (fd < 0) return; -- cgit v1.2.3