mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Commented out FD_CLOEXEC fcntl() calls
This commit is contained in:
parent
ee22480d93
commit
073dff1ba1
7 changed files with 61 additions and 0 deletions
|
|
@ -845,12 +845,17 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name,
|
|||
if (fmode & O_ASYNC)
|
||||
mode |= SND_PCM_ASYNC;
|
||||
|
||||
#if 0
|
||||
/*
|
||||
* this is bogus, an application have to care about open filedescriptors
|
||||
*/
|
||||
if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) {
|
||||
ret = -errno;
|
||||
SYSERR("fcntl FD_CLOEXEC failed");
|
||||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ioctl(fd, SNDRV_PCM_IOCTL_PVERSION, &ver) < 0) {
|
||||
ret = -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue