summaryrefslogtreecommitdiffstats
path: root/net-mgmt/nsca-ng/files/patch-src_server_nsca-ng.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/nsca-ng/files/patch-src_server_nsca-ng.c')
-rw-r--r--net-mgmt/nsca-ng/files/patch-src_server_nsca-ng.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/net-mgmt/nsca-ng/files/patch-src_server_nsca-ng.c b/net-mgmt/nsca-ng/files/patch-src_server_nsca-ng.c
new file mode 100644
index 0000000..05ca65a
--- /dev/null
+++ b/net-mgmt/nsca-ng/files/patch-src_server_nsca-ng.c
@@ -0,0 +1,16 @@
+--- src/server/nsca-ng.c.orig 2013-11-06 21:44:18 UTC
++++ src/server/nsca-ng.c
+@@ -300,11 +300,9 @@ close_descriptors(void)
+ int min_fd = STDERR_FILENO + 1;
+
+ #if HAVE_CLOSEFROM /* BSD and Solaris. */
+- if (closefrom(min_fd) == -1)
+- die("Cannot close file descriptors >= %d: %m", min_fd);
++ (void)closefrom(min_fd);
+ #elif defined(F_CLOSEM) /* AIX and IRIX. */
+- if (fcntl(min_fd, F_CLOSEM, 0) == -1)
+- die("Cannot close file descriptors >= %d: %m", min_fd);
++ (void)fcntl(min_fd, F_CLOSEM, 0);
+ #else
+ int max_fd = MIN(sysconf(_SC_OPEN_MAX), /* Arbitrary limit: */ 1048576);
+ int fd;
OpenPOWER on IntegriCloud