revert pipe opening, so open() blocks again if no reader

This commit is contained in:
Matthew Flint
2011-04-18 22:10:49 +01:00
parent 6b2c494f57
commit f77b8310c2
+2 -2
View File
@@ -705,8 +705,8 @@ void *audio_thread_func(void *arg) {
if (pipename) {
if (pipe_handle == -1) {
// attempt to open pipe, don't block
pipe_handle = open(pipename, O_WRONLY | O_NDELAY);
// attempt to open pipe - block if there are no readers
pipe_handle = open(pipename, O_WRONLY);
}
// only write if pipe open (there's a reader)