tplumb(): _exit(1) on failure - sacc - sacc (saccomys): simple gopher client.
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 5e49f6688528ae10c7ed03cf6efac03f394dba87
DIR parent cc38aec276d50a961061d8cb288c8a5e50eed3ac
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 25 Feb 2018 13:46:38 +0100
plumb(): _exit(1) on failure
Don't let the child write to the UI. Use _exit to not execute any atexit
handlers or signals.
Diffstat:
sacc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/sacc.c b/sacc.c
t@@ -548,7 +548,7 @@ plumb(char *url)
dup2(devnullfd, 1);
dup2(devnullfd, 2);
if (execlp(plumber, plumber, url, NULL) < 0)
- uistatus("execlp: plumb(%s): %s", url, strerror(errno));
+ _exit(1);
}
uistatus("Plumbed \"%s\"", url);