From: Alexander Kuleshov Date: Sat, 2 Jul 2016 17:42:01 +0000 (+0600) Subject: treewide: use stdio_unset_cloexec() function X-Git-Tag: v231.3~80 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=91234e9678a03a52f0dccfcd4b24f561d3612d54;p=elogind.git treewide: use stdio_unset_cloexec() function --- 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; }