diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2011-04-29 16:23:16 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2011-04-29 16:54:12 +0200 |
commit | 6a3ac4d9c5b75c11403b9e4e9675b97c25792ab3 (patch) | |
tree | 05ac0544005428858c9a12e4599b61c61dd72f26 | |
parent | 4df2797a850897e8c78b1efcabc37f3a29faafad (diff) | |
download | fetchmail-6a3ac4d9c5b75c11403b9e4e9675b97c25792ab3.tar.gz fetchmail-6a3ac4d9c5b75c11403b9e4e9675b97c25792ab3.tar.bz2 fetchmail-6a3ac4d9c5b75c11403b9e4e9675b97c25792ab3.zip |
Properly report EXIT_FAILURE if the plugin/plugout execvp() fails.
-rw-r--r-- | socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(1); + 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(0); + exit(EXIT_FAILURE); break; default: /* parent */ /* NOP */ |