aboutsummaryrefslogtreecommitdiffstats
path: root/src/blind-tee.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-23 22:55:14 +0200
committerMattias Andrée <maandree@kth.se>2017-07-23 22:55:14 +0200
commitd391ca2ddb719d2478e824dec082b849613eeda6 (patch)
tree93f34a065a571f51101a0c884ae982c2cb65cbf2 /src/blind-tee.c
parentblind-primary-key: remove ./ and make more portable (diff)
downloadblind-d391ca2ddb719d2478e824dec082b849613eeda6.tar.gz
blind-d391ca2ddb719d2478e824dec082b849613eeda6.tar.bz2
blind-d391ca2ddb719d2478e824dec082b849613eeda6.tar.xz
Fix support for using sockets insteads of pipes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-tee.c')
-rw-r--r--src/blind-tee.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blind-tee.c b/src/blind-tee.c
index c0f54c9..bfcafdb 100644
--- a/src/blind-tee.c
+++ b/src/blind-tee.c
@@ -13,6 +13,8 @@ main(int argc, char *argv[])
UNOFLAGS(0);
+ signal(SIGPIPE, SIG_IGN);
+
fds[n++] = STDOUT_FILENO;
while (argc--)
fds[n++] = eopen(*argv++, O_WRONLY | O_CREAT | O_TRUNC, 0666);