Skip to content
Snippets Groups Projects
Commit 36242db0 authored by Stan Seibert's avatar Stan Seibert
Browse files

Some daemons close stdin, so the next file descriptor they get is 0. Allow

0 to be used for playback.  Closes bug 455.


git-svn-id: http://svn.xiph.org/trunk/ao@5365 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent da5c37fc
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ int _open_default_oss_device (char **dev_path, int blocking)
#ifdef BROKEN_OSS
/* Now have to remove the O_NONBLOCK flag if so instructed. */
if (fd > 0 && blocking) {
if (fd >= 0 && blocking) {
if (fcntl(fd, F_SETFL, 0) < 0) { /* Remove O_NONBLOCK */
/* If we can't go to blocking mode, we can't use
this device */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment