Make writing to the pipe non-blocking. It will break on large files -- to be fixed.

This commit is contained in:
Mike Brady
2015-02-26 00:44:44 +00:00
parent a8796c407a
commit 83cccf0a0f
+1 -1
View File
@@ -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);