mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Remove old commented-out FD_CLOEXEC code
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
8264b2fd0a
commit
57ce918928
6 changed files with 0 additions and 67 deletions
|
|
@ -1144,18 +1144,6 @@ 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;
|
||||
SYSMSG("fcntl FD_CLOEXEC failed");
|
||||
close(fd);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ioctl(fd, SNDRV_PCM_IOCTL_PVERSION, &ver) < 0) {
|
||||
ret = -errno;
|
||||
SYSMSG("SNDRV_PCM_IOCTL_PVERSION failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue