From 18c055658989375b5c5f6a90d97ebd54c8b351a1 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 23 Jan 2017 22:16:58 +0200 Subject: Ignore sigpipe --- glcapture.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glcapture.c b/glcapture.c index d620fe4..2dd202d 100644 --- a/glcapture.c +++ b/glcapture.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -214,6 +215,8 @@ check_and_prepare_stream(struct fifo *fifo, const struct frame_info *info) } if (fifo->fd < 0) { + signal(SIGPIPE, SIG_IGN); + if ((fifo->fd = open(FIFO_PATH, O_WRONLY | O_NONBLOCK | O_CLOEXEC)) < 0) return false; -- cgit v1.2.3-70-g09d2