Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

mud_signals.c

Go to the documentation of this file.
00001 #include <signal.h>
00002 
00003 #if defined(macintosh)
00004 #include <types.h>
00005 #else
00006 #include <sys/types.h>
00007 #endif
00008 #include <stdio.h>
00009 #include <string.h>
00010 #include <time.h>
00011 #include "merc.h"
00012 #include "interp.h"
00013 #include "tables.h"
00014 #include "lookup.h"
00015 #include "mount.h"
00016 
00017 #define COPYOVER_FILE "copyover.data"
00018 
00019 int first_pass=0;
00020 void mud_crashing (int signum)
00021 {
00022     FILE *ffp;
00023     DESCRIPTOR_DATA *d,  *d_next;
00024     char buf[100], buf2[100];
00025     extern int port, control;  
00026     sprintf(buf, "%d",port);
00027 
00028 
00029     for (d=descriptor_list;d;d=d_next)
00030     {
00031         d_next = d->next;
00032         write_to_descriptor(d->descriptor, "Sorry, we're \e[1;31mcrashing\e[0m at the moment. Please reconnect in a moment.\n\r", 0);
00033         
00034     }
00035     exit(1);
00036 
00037 
00038     first_pass = TRUE;
00039    
00040     
00041 
00042 }

Generated on Thu Jan 13 21:48:12 2005 for Beyond the Shadows by  doxygen 1.4.0