From 26347a4c5538008318188118872490128f43fcd3 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 30 Oct 2009 12:31:59 +0100 Subject: use CLOEXEC flags instead of fcntl() --- libudev/libudev-util.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libudev/libudev-util.c') 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; -- cgit v1.2.3-54-g00ecf