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

mud_signals.c File Reference

#include <signal.h>
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "merc.h"
#include "interp.h"
#include "tables.h"
#include "lookup.h"
#include "mount.h"

Include dependency graph for mud_signals.c:

Go to the source code of this file.

Defines

#define COPYOVER_FILE   "copyover.data"

Functions

void mud_crashing (int signum)

Variables

int first_pass = 0


Define Documentation

#define COPYOVER_FILE   "copyover.data"
 

Definition at line 17 of file mud_signals.c.


Function Documentation

void mud_crashing int  signum  ) 
 

Definition at line 20 of file mud_signals.c.

References control, d_next, descriptor_data::descriptor, descriptor_list, first_pass, descriptor_data::next, port, TRUE, and write_to_descriptor().

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 }

Here is the call graph for this function:


Variable Documentation

int first_pass = 0
 

Definition at line 19 of file mud_signals.c.

Referenced by mud_crashing(), and save_vehicles().


Generated on Thu Jan 13 22:11:33 2005 for Beyond the Shadows by  doxygen 1.4.0