diff --git a/src/plugins/sun/ao_sun.c b/src/plugins/sun/ao_sun.c index e595a855c2100bc4759ce133a3f0aa1dda1038a2..eec8d450ac288afad683f52f85ab1f7367c35dcf 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);