ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/restart.c
(Generate patch)

Comparing:
ircd-hybrid/src/restart.c (file contents), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid-7.3/src/restart.c (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# Line 23 | Line 23
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"
# Line 39 | Line 38 | restart(const char *mesg)
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
# Line 52 | Line 50 | server_die(const char *mesg, int rboot)
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",

Comparing:
ircd-hybrid/src/restart.c (property svn:keywords), Revision 32 by knight, Sun Oct 2 20:41:23 2005 UTC vs.
ircd-hybrid-7.3/src/restart.c (property svn:keywords), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# Line 1 | Line 1
1 < Revision
1 > Id Revision

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)