diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-10-30 12:31:59 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-10-30 12:39:04 +0100 |
commit | 26347a4c5538008318188118872490128f43fcd3 (patch) | |
tree | 1bd46e51f23a581bc4ac0faa591a58487b015bda /libudev/libudev-util.c | |
parent | 82c6558e0109f66091e3a8e2c4ceef0372b0b331 (diff) |
use CLOEXEC flags instead of fcntl()
Diffstat (limited to 'libudev/libudev-util.c')
-rw-r--r-- | libudev/libudev-util.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libudev/libudev-util.c b/libudev/libudev-util.c index 9a656b5a98..c0209f9cc6 100644 --- a/libudev/libudev-util.c +++ b/libudev/libudev-util.c @@ -481,18 +481,6 @@ err: return -1; } -void util_set_fd_cloexec(int fd) -{ - int flags; - - flags = fcntl(fd, F_GETFD); - if (flags < 0) - flags = FD_CLOEXEC; - else - flags |= FD_CLOEXEC; - fcntl(fd, F_SETFD, flags); -} - unsigned int util_string_hash32(const char *str) { unsigned int hash = 0; |