From 91234e9678a03a52f0dccfcd4b24f561d3612d54 Mon Sep 17 00:00:00 2001 From: Alexander Kuleshov Date: Sat, 2 Jul 2016 23:42:01 +0600 Subject: [PATCH] treewide: use stdio_unset_cloexec() function --- src/basic/terminal-util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index fa4f60826..40e3c400f 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -898,9 +898,7 @@ int make_stdio(int fd) { /* Explicitly unset O_CLOEXEC, since if fd was < 3, then * dup2() was a NOP and the bit hence possibly set. */ - fd_cloexec(STDIN_FILENO, false); - fd_cloexec(STDOUT_FILENO, false); - fd_cloexec(STDERR_FILENO, false); + stdio_unset_cloexec(); return 0; } -- 2.30.2