projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c80b4
)
add O_NOCTTY
author
Lennart Poettering
<lennart@poettering.net>
Wed, 21 May 2008 22:42:01 +0000
(22:42 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 21 May 2008 22:42:01 +0000
(22:42 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2471
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/random.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/random.c
b/src/pulsecore/random.c
index
87afebf
..
6fe649c
100644
(file)
--- a/
src/pulsecore/random.c
+++ b/
src/pulsecore/random.c
@@
-64,7
+64,11
@@
static int random_proper(void *ret_data, size_t length) {
while (*device) {
ret = 0;
- if ((fd = open(*device, O_RDONLY)) >= 0) {
+ if ((fd = open(*device, O_RDONLY
+#ifdef O_NOCTTY
+ | O_NOCTTY
+#endif
+ )) >= 0) {
if ((r = pa_loop_read(fd, ret_data, length, NULL)) < 0 || (size_t) r != length)
ret = -1;