summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sent.c b/sent.c
index f6c57fb..a4d0cd2 100644
--- a/sent.c
+++ b/sent.c
@@ -150,7 +150,8 @@ filter(int fd, const char *cmd)
close(fds[0]);
close(fds[1]);
execlp("sh", "sh", "-c", cmd, (char *)0);
- die("sent: execlp sh -c '%s':", cmd);
+ fprintf(stderr, "sent: execlp sh -c '%s': %s\n", cmd, strerror(errno));
+ _exit(1);
}
close(fds[1]);
return fds[0];