diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-04 18:42:53 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-04 18:42:53 +0800 |
commit | ae2aa394c8861cd7823fa9c436892491afb6411e (patch) | |
tree | f48a1e7ae48eb8eb009ce5f74fef344283b9f7fc /mbbsd | |
parent | 9ea952adeca21cf674d7ba96ad3a9ddf19b50d12 (diff) | |
download | pttbbs-ae2aa394c8861cd7823fa9c436892491afb6411e.tar pttbbs-ae2aa394c8861cd7823fa9c436892491afb6411e.tar.gz pttbbs-ae2aa394c8861cd7823fa9c436892491afb6411e.tar.bz2 pttbbs-ae2aa394c8861cd7823fa9c436892491afb6411e.tar.lz pttbbs-ae2aa394c8861cd7823fa9c436892491afb6411e.tar.xz pttbbs-ae2aa394c8861cd7823fa9c436892491afb6411e.tar.zst pttbbs-ae2aa394c8861cd7823fa9c436892491afb6411e.zip |
use rfork()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1394 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 42bb48a2..028a91b6 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -19,6 +19,10 @@ static int use_shell_login_mode = 0; static struct sockaddr_in xsin; +#ifdef USE_RFORK +#define fork() rfork(RFFDG | RFPROC | RFNOWAIT) +#endif + /* set signal handler, which won't be reset once signal comes */ static void signal_restart(int signum, void (*handler) (int)) |