Date: Thu Apr 18 15:56:47 CEST 2002
User: Derick Rethans
Directory: srm/main
Log Message:
[0.25]
- Shut down gracefully on SIGTERM
Modified files:
srm/main/main.c (version: 1.54)
[FILE: /srm/main/main.c]
--- srm/main/main.c:1.53 Sat Feb 23 18:44:26 2002 GMT
+++ srm/main/main.c Thu Apr 18 11:56:47 2002 GMT
@@ -1,4 +1,4 @@
-/* $Id: cvstemp,v 1.53 2002/02/23 19:44:26 kalowsky Exp $ */
+/* $Id: cvstemp,v 1.54 2002/04/18 13:56:47 derick Exp $ */
/* The contents of this file are subject to the Vulcan Logic Public
* License Version 1.1 (the "License"); you may not use this file
@@ -323,6 +323,13 @@
break;
case SIGSEGV:
exit (ERROR_SIGSEGV);
+ break;
+ case SIGTERM:
+ srm_fmt_message (LL_SIGNAL, "Signal", "SIGTERM caught, shutting down SRM");
+ pthread_mutex_lock (&mtx_shutdown);
+ srm_shutdown = TRUE;
+ pthread_mutex_unlock (&mtx_shutdown);
+ srm_caught_signal = -1;
break;
case SIGINT:
srm_fmt_message (LL_SIGNAL, "Signal", "SIGINT caught, shutting down SRM");
Received on Thu Apr 18 16:53:09 2002
This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 09:00:03 CET