summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-30 02:56:02 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-30 02:56:02 +0200
commit4f082c7df3998cdc2cdf9845a62d886d05257cb8 (patch)
treed1aba5a8ad41db7954ac41583be2eb09e76e5492 /src/fastd.h
parent36f9d70182c4c2f2e617192ae34abd6c44549a78 (diff)
downloadfastd-4f082c7df3998cdc2cdf9845a62d886d05257cb8.tar
fastd-4f082c7df3998cdc2cdf9845a62d886d05257cb8.zip
Remove now unneeded FD_CLOEXEC flag config
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 2654bfd..b5dbe0c 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -331,15 +331,6 @@ static inline int fastd_rand(int min, int max) {
}
-static inline void fastd_setfd(const int fd, int set) {
- int flags = fcntl(fd, F_GETFD);
- if (flags < 0)
- exit_errno("Getting file descriptor flags failed: fcntl");
-
- if (fcntl(fd, F_SETFD, flags|set) < 0)
- exit_errno("Setting file descriptor flags failed: fcntl");
-}
-
static inline void fastd_setfl(const int fd, int set) {
int flags = fcntl(fd, F_GETFL);
if (flags < 0)