aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2011-04-29 16:29:21 +0200
committerMatthias Andree <matthias.andree@gmx.de>2011-04-29 16:54:12 +0200
commitab7a12a1c5b074b0ccfeb7f4a43ed71d5bb36175 (patch)
tree301f6c3a17c6912e6230c3b31616da1b6bf8aa43 /socket.c
parent6a3ac4d9c5b75c11403b9e4e9675b97c25792ab3 (diff)
downloadfetchmail-ab7a12a1c5b074b0ccfeb7f4a43ed71d5bb36175.tar.gz
fetchmail-ab7a12a1c5b074b0ccfeb7f4a43ed71d5bb36175.tar.bz2
fetchmail-ab7a12a1c5b074b0ccfeb7f4a43ed71d5bb36175.zip
In the plugin child, call _exit, not exit.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index c2059deb..d48a6369 100644
--- a/socket.c
+++ b/socket.c
@@ -179,7 +179,7 @@ static int handle_plugin(const char *host,
(void) close(fds[1]);
if ( (dup2(fds[0],0) == -1) || (dup2(fds[0],1) == -1) ) {
report(stderr, GT_("dup2 failed\n"));
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
}
/* fds[0] is now connected to 0 and 1; close it */
(void) close(fds[0]);
@@ -188,7 +188,7 @@ static int handle_plugin(const char *host,
argvec = parse_plugin(plugin,host,service);
execvp(*argvec, argvec);
report(stderr, GT_("execvp(%s) failed\n"), *argvec);
- exit(EXIT_FAILURE);
+ _exit(EXIT_FAILURE);
break;
default: /* parent */
/* NOP */