mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 10:43:12 +02:00
Index: Changes
=================================================================== RCS file: /home/cmunk/ircsystems/cvsroot/unreal/Changes,v retrieving revision 1.1.1.1.2.1.2.1.2.170 diff -u -r1.1.1.1.2.1.2.1.2.170 Changes --- Changes 2000/08/06 08:06:36 1.1.1.1.2.1.2.1.2.170 +++ Changes 2000/08/06 08:24:08 @@ -517,3 +517,4 @@ the ircd logs it to ircd.log and dies - Updated ./ircd to also say to look at ircd.log - Fixed a SQLINE synch bug +- Added command line option -F to prevent the ircd to fork out
This commit is contained in:
@@ -517,3 +517,4 @@
|
||||
the ircd logs it to ircd.log and dies
|
||||
- Updated ./ircd to also say to look at ircd.log
|
||||
- Fixed a SQLINE synch bug
|
||||
- Added command line option -F to prevent the ircd to fork out
|
||||
|
||||
@@ -140,6 +140,7 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */
|
||||
#define BOOT_TTY 16
|
||||
#define BOOT_OPER 32
|
||||
#define BOOT_AUTODIE 64
|
||||
#define BOOT_NOFORK 128
|
||||
|
||||
#define STAT_LOG -6 /* logfile for -x */
|
||||
#define STAT_CONNECTING -4
|
||||
|
||||
+6
-2
@@ -786,6 +786,9 @@ int InitwIRCD(argc, argv)
|
||||
#endif
|
||||
dpath = p;
|
||||
break;
|
||||
case 'F':
|
||||
bootopt |= BOOT_NOFORK;
|
||||
break;
|
||||
#ifndef _WIN32
|
||||
#ifdef CMDLINE_CONFIG
|
||||
case 'f':
|
||||
@@ -1065,8 +1068,9 @@ int InitwIRCD(argc, argv)
|
||||
me.lasttime = me.since = me.firsttime = TStime();
|
||||
(void)add_to_client_hash_table(me.name, &me);
|
||||
#if !defined(_AMIGA) && !defined(_WIN32) && !defined(NO_FORKING)
|
||||
if (fork())
|
||||
exit(0);
|
||||
if (!(bootopt & BOOT_NOFORK))
|
||||
if (fork())
|
||||
exit(0);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user