summaryrefslogtreecommitdiff
path: root/src/import/pull-common.c
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2016-07-02 23:42:01 +0600
committerAlexander Kuleshov <kuleshovmail@gmail.com>2016-07-02 23:42:01 +0600
commit913f38e4402ad19529b13fdb56db77eaa2b9f30a (patch)
treec97ecaa404ee1f4ced036d4f8a54e1b7d2a2efb2 /src/import/pull-common.c
parent3b9a1d87cc468cfcd6f9ddfd98ac389fa5840f10 (diff)
treewide: use stdio_unset_cloexec() function
Diffstat (limited to 'src/import/pull-common.c')
-rw-r--r--src/import/pull-common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/import/pull-common.c b/src/import/pull-common.c
index dc4e4667a9..2ae2a4174c 100644
--- a/src/import/pull-common.c
+++ b/src/import/pull-common.c
@@ -506,9 +506,7 @@ int pull_verify(PullJob *main_job,
cmd[k++] = "-";
cmd[k++] = NULL;
- fd_cloexec(STDIN_FILENO, false);
- fd_cloexec(STDOUT_FILENO, false);
- fd_cloexec(STDERR_FILENO, false);
+ stdio_unset_cloexec();
execvp("gpg2", (char * const *) cmd);
execvp("gpg", (char * const *) cmd);