From 83cccf0a0fc41d677f7a9ee4c1bde87b3a671c0c Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Thu, 26 Feb 2015 00:44:44 +0000 Subject: [PATCH] Make writing to the pipe non-blocking. It will break on large files -- to be fixed. --- rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtsp.c b/rtsp.c index 75c0b528..4b5dec46 100644 --- a/rtsp.c +++ b/rtsp.c @@ -871,7 +871,7 @@ void metadata_open(void) { char* path = malloc(pl+1); snprintf(path, pl+1, "%s/%s", config.meta_dir, fn); - fd = open(path, O_WRONLY); + fd = open(path, O_WRONLY | O_NONBLOCK); if (fd < 0) debug(1, "Could not open metadata FIFO %s. Will try again later.", path);