----- Original Message -----
From: "Dwight Durmon" <ddurmon@yahoo.com>
> RETSIGTYPE nologin(int sig)
> {
> if (!login) {
> log("Recieved SIGALRM. Disallowing Logins...");
> login=1;
> send_to_all("NOTICE: The mud is going down for maintenance. Your game will
> be saved and you will be disconnected now!");
> Crash_save_all();
> House_save_all();
>
> /* Need to kill active connections here!! */
+ while (descriptor_list)
+ close_socket(descriptor_list);
>
Done!
The game will then go to sleep, waiting for new connections.
The above is taken from init_game(), where it closes all sockets
after shutdown is called. It should work here too, even though it's
mailer code.
Welcor
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/06/01 PST