Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7787:200f1f6306a7 | 7789:93dd90309779 |
---|---|
47 #if (defined(_SVID_SOURCE) && !defined(WITHOUT_MALLINFO)) | 47 #if (defined(_SVID_SOURCE) && !defined(WITHOUT_MALLINFO)) |
48 #include <malloc.h> | 48 #include <malloc.h> |
49 #define WITH_MALLINFO | 49 #define WITH_MALLINFO |
50 #endif | 50 #endif |
51 | 51 |
52 #if defined(RFPROC) && defined(EV_SET) | 52 #if defined(__FreeBSD__) && defined(RFPROC) |
53 /* | 53 /* |
54 * On *BSD, calling fork() is equivalent to rfork(RFPROC | RFFDG). | 54 * On FreeBSD, calling fork() is equivalent to rfork(RFPROC | RFFDG). |
55 * | 55 * |
56 * RFFDG being set means that the file descriptor table is copied, | 56 * RFFDG being set means that the file descriptor table is copied, |
57 * otherwise it's shared. We want the later, otherwise libevent gets | 57 * otherwise it's shared. We want the later, otherwise libevent gets |
58 * messed up. | 58 * messed up. |
59 * | 59 * |