Diff

util-src/pposix.c @ 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
parent 7440:5424e24cdcb1
child 7818:54669df178c2
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