23 |
|
*/ |
24 |
|
|
25 |
|
#include "stdinc.h" |
26 |
< |
#include "tools.h" |
26 |
> |
#include "list.h" |
27 |
|
#include "restart.h" |
28 |
– |
#include "common.h" |
28 |
|
#include "fdlist.h" |
29 |
|
#include "ircd.h" |
30 |
|
#include "irc_string.h" |
38 |
|
{ |
39 |
|
static int was_here = 0; /* redundant due to restarting flag below */ |
40 |
|
|
41 |
< |
if (was_here) |
41 |
> |
if (was_here++) |
42 |
|
abort(); |
44 |
– |
was_here = 1; |
43 |
|
|
44 |
< |
server_die(mesg, YES); |
44 |
> |
server_die(mesg, 1); |
45 |
|
} |
46 |
|
|
47 |
|
void |
50 |
|
char buffer[IRCD_BUFSIZE]; |
51 |
|
dlink_node *ptr = NULL; |
52 |
|
struct Client *target_p = NULL; |
53 |
+ |
static int was_here = 0; |
54 |
+ |
|
55 |
+ |
if (rboot && was_here++) |
56 |
+ |
abort(); |
57 |
|
|
58 |
|
if (EmptyString(mesg)) |
59 |
|
snprintf(buffer, sizeof(buffer), "Server %s", |