store away message in user struct
This commit is contained in:
parent
795e61089e
commit
befe9b7ed0
6 changed files with 56 additions and 7 deletions
6
main.c
6
main.c
|
@ -178,6 +178,8 @@ main (int argc, char *argv[])
|
|||
return EXIT_FAILURE;
|
||||
if(init_chan_hash () != NS_SUCCESS)
|
||||
return EXIT_FAILURE;
|
||||
if(InitBans () != NS_SUCCESS)
|
||||
return EXIT_FAILURE;
|
||||
/* initilize out transfer subsystem */
|
||||
if (init_curl () != NS_SUCCESS)
|
||||
return EXIT_FAILURE;
|
||||
|
@ -582,6 +584,7 @@ do_exit (NS_EXIT_TYPE exitcode, char* quitmsg)
|
|||
/* now free up the users and servers memory */
|
||||
FreeUsers();
|
||||
FreeServers();
|
||||
FreeBans();
|
||||
fini_adns();
|
||||
finiModuleHash();
|
||||
}
|
||||
|
@ -590,9 +593,6 @@ do_exit (NS_EXIT_TYPE exitcode, char* quitmsg)
|
|||
kp_exit();
|
||||
fini_logs ();
|
||||
|
||||
|
||||
|
||||
|
||||
if ((exitcode == NS_EXIT_RECONNECT && me.r_time > 0) || exitcode == NS_EXIT_RELOAD) {
|
||||
execve ("./neostats", NULL, NULL);
|
||||
return_code=EXIT_FAILURE; /* exit code to error */
|
||||
|
|
Reference in a new issue