commit 5e49f6688528ae10c7ed03cf6efac03f394dba87
parent cc38aec276d50a961061d8cb288c8a5e50eed3ac
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sacc.c b/sacc.c
@@ -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);