mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.pposix: rfork() seems to be FreeBSD only (fixes #412)
This commit is contained in:
parent
aedd689b72
commit
4bacd7b4fc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue