From 290da4a3710619b97a50aa350f1beca965641b8f Mon Sep 17 00:00:00 2001 From: Stan Seibert <volsung@xiph.org> Date: Sun, 16 Dec 2001 21:10:34 +0000 Subject: [PATCH] Partial fix for sun audio device blocking problem during probing. Still testing. git-svn-id: http://svn.xiph.org/trunk/ao@2620 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- src/plugins/sun/ao_sun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/sun/ao_sun.c b/src/plugins/sun/ao_sun.c index e595a85..eec8d45 100644 --- a/src/plugins/sun/ao_sun.c +++ b/src/plugins/sun/ao_sun.c @@ -69,7 +69,7 @@ int ao_plugin_test() { int fd; - if ( (fd = open(AO_SUN_DEFAULT_DEV, O_WRONLY)) < 0 ) + if ( (fd = open(AO_SUN_DEFAULT_DEV, O_WRONLY | O_NONBLOCK)) < 0 ) return 0; /* Cannot use this plugin with default parameters */ else { close(fd); -- GitLab