From f68d2f7c7f17b3da8d946cec82c28d2767d28478 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 15 Mar 2014 14:54:02 +0100 Subject: system/fd_util: export fd_set_cloexec() --- src/system/fd_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/system/fd_util.h') diff --git a/src/system/fd_util.h b/src/system/fd_util.h index 3c72890e1..f4a940e91 100644 --- a/src/system/fd_util.h +++ b/src/system/fd_util.h @@ -51,6 +51,9 @@ struct sockaddr; extern "C" { #endif +int +fd_set_cloexec(int fd, bool enable); + /** * Wrapper for dup(), which sets the CLOEXEC flag on the new * descriptor. -- cgit v1.2.3