diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-19 10:26:06 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-19 10:26:06 +0000 |
commit | 60dbf8b82d694bba5a4ebbe651e504cb12df927b (patch) | |
tree | 604a0bc76d00530d459b4a2aff50183d23fb2480 /polyp/module-solaris.c | |
parent | 0ca9a0ea09a8518c9e6b541812a76fa7abac15f1 (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/module-solaris.c')
-rw-r--r-- | polyp/module-solaris.c | 2 |
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")); |