Vanilla Development Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS update: Vanilla/ntserv
Date: Wednesday June 2, 1999 @ 23:57
Author: jeffno
Update of /home/netrek/cvsroot/Vanilla/ntserv
In directory cvs.castle.real-time.com:/var/tmp/cvs-serv4492/Vanilla/ntserv
Modified Files:
daemonII.c
Log Message:
Ignore SIGALRM inside of a move, and re-install
it at the end of a move. This prevents a move (or tick)
of the server from being interrupted by the signal for
the next move if it hasn't finished yet.
****************************************
Index: Vanilla/ntserv/daemonII.c
diff -u Vanilla/ntserv/daemonII.c:1.20 Vanilla/ntserv/daemonII.c:1.21
--- Vanilla/ntserv/daemonII.c:1.20 Mon May 31 20:53:21 1999
+++ Vanilla/ntserv/daemonII.c Wed Jun 2 23:57:02 1999
@@ -446,7 +446,8 @@
static int oldmessage;
int old_robot;
- HANDLE_SIG(SIGALRM,move);
+ /* Don't tell us it's time for another move in the middle of a move. */
+ (void) SIGNAL(SIGALRM, SIG_IGN);
if (fuse(QUEUEFUSE)){
queues_purge();
@@ -455,6 +456,7 @@
if (status->gameup & GU_PAUSED){ /* Game is paused */
signal_servers();
+ (void) SIGNAL(SIGALRM, move);
return;
}
@@ -625,6 +627,8 @@
if (fuse(CHECKLOADFUSE)) {
check_load();
}
+
+ (void) SIGNAL(SIGALRM, move);
}