summaryrefslogtreecommitdiffstats
path: root/polyp
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-19 10:26:06 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-19 10:26:06 +0000
commit60dbf8b82d694bba5a4ebbe651e504cb12df927b (patch)
tree604a0bc76d00530d459b4a2aff50183d23fb2480 /polyp
parent0ca9a0ea09a8518c9e6b541812a76fa7abac15f1 (diff)
Open the device in non-blocking mode.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@458 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp')
-rw-r--r--polyp/module-solaris.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/module-solaris.c b/polyp/module-solaris.c
index 984a5f66..01a151d6 100644
--- a/polyp/module-solaris.c
+++ b/polyp/module-solaris.c
@@ -382,7 +382,7 @@ int pa__init(pa_core *c, pa_module*m) {
goto fail;
}
- if ((fd = open(p = pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), mode)) < 0)
+ if ((fd = open(p = pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), mode | O_NONBLOCK)) < 0)
goto fail;
pa_log_info(__FILE__": device opened in %s mode.\n", mode == O_WRONLY ? "O_WRONLY" : (mode == O_RDONLY ? "O_RDONLY" : "O_RDWR"));