Make writing to the pipe non-blocking. It will break on large files -- to be fixed.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user