Changeset

7789:93dd90309779

util.pposix: rfork() seems to be FreeBSD only (fixes #412)
author Kim Alvefur <zash@zash.se>
date Mon, 19 Dec 2016 08:51:50 +0100
parents 7787:200f1f6306a7
children 7790:0310ab4f277f
files util-src/pposix.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util-src/pposix.c	Thu Dec 15 07:03:52 2016 +0100
+++ b/util-src/pposix.c	Mon Dec 19 08:51:50 2016 +0100
@@ -49,9 +49,9 @@
 #define WITH_MALLINFO
 #endif
 
-#if defined(RFPROC) && defined(EV_SET)
+#if defined(__FreeBSD__) && defined(RFPROC)
 /*
- * On *BSD, calling fork() is equivalent to rfork(RFPROC | RFFDG).
+ * On FreeBSD, calling fork() is equivalent to rfork(RFPROC | RFFDG).
  *
  * RFFDG being set means that the file descriptor table is copied,
  * otherwise it's shared. We want the later, otherwise libevent gets