#include "ircd_signal.h"
/* external var */
-extern char **myargv;
+extern char * const *myargv;
void
restart(const char *mesg)
int i;
char path[PATH_MAX+1];
- sendto_realops_snomask(SNO_GENERAL, L_ALL, "Restarting server...");
+ sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "Restarting server...");
ilog(L_MAIN, "Restarting server...");
execv(ircd_paths[IRCD_PATH_IRCD_EXEC], (void *)myargv);
/* use this if execv of SPATH fails */
- snprintf(path, sizeof(path), "%s%cbin%circd", ConfigFileEntry.dpath, RB_PATH_SEPARATOR, RB_PATH_SEPARATOR);
+ snprintf(path, sizeof(path), "%s/bin/ircd", ConfigFileEntry.dpath);
execv(path, (void *)myargv);
exit(-1);