summaryrefslogtreecommitdiff
path: root/src/seq
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2003-02-05 11:00:16 +0000
committerJaroslav Kysela <perex@perex.cz>2003-02-05 11:00:16 +0000
commit073dff1ba13da4770627ba8eb3f9fdd2342fad3e (patch)
tree6f60a506f2237ec3f4879a7ec27a6b18af96eac8 /src/seq
parentee22480d937f45e6d6e41ce201fa02f43c5f96cd (diff)
Commented out FD_CLOEXEC fcntl() calls
Diffstat (limited to 'src/seq')
-rw-r--r--src/seq/seq_hw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/seq/seq_hw.c b/src/seq/seq_hw.c
index 7d330d7e..a4506395 100644
--- a/src/seq/seq_hw.c
+++ b/src/seq/seq_hw.c
@@ -447,12 +447,17 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
return -errno;
}
}
+#if 0
+ /*
+ * this is bogus, an application have to care about open filedescriptors
+ */
if (fcntl(fd, F_SETFD, FD_CLOEXEC) != 0) {
SYSERR("fcntl FD_CLOEXEC failed");
ret = -errno;
close(fd);
return ret;
}
+#endif
if (ioctl(fd, SNDRV_SEQ_IOCTL_PVERSION, &ver) < 0) {
SYSERR("SNDRV_SEQ_IOCTL_PVERSION failed");
ret = -errno;