mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
add O_NOCTTY
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2471 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
a9c80b4383
commit
9303cdd732
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue