- DLINK_FOREACH(ptr, lclient_list.head)
- {
- target_p = ptr->data;
-
- sendto_one(target_p,
- ":%s NOTICE %s :Server Terminating. %s",
- me.name, target_p->name, get_client_name(source_p, HIDE_IP));
- }
-
- DLINK_FOREACH(ptr, serv_list.head)
- {
- target_p = ptr->data;
-
- sendto_one(target_p, ":%s ERROR :Terminated by %s",
- me.name, get_client_name(source_p, HIDE_IP));
- }
-
- /*
- * XXX we called flush_connections() here. Read server_reboot()
- * for an explanation as to what we should do.
- * -- adrian
- */
- ilog(L_MAIN, "Server terminated by %s", get_oper_name(source_p));
-
- /* this is a normal exit, tell the os it's ok */
- unlink(pidFileName);
- exit(0);
- /* NOT REACHED */