summaryrefslogtreecommitdiff
path: root/glcapture.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcapture.c')
-rw-r--r--glcapture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/glcapture.c b/glcapture.c
index d620fe4..2dd202d 100644
--- a/glcapture.c
+++ b/glcapture.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
+#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <time.h>
@@ -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;