Author: sayer
Date: 2009-11-07 10:33:41 +0100 (Sat, 07 Nov 2009)
New Revision: 1616
Modified:
trunk/core/sems.cpp
Log:
removing PID file as last action. thanks to juha for reporting.
Modified: trunk/core/sems.cpp
===================================================================
--- trunk/core/sems.cpp 2009-11-06 20:35:48 UTC (rev 1615)
+++ trunk/core/sems.cpp 2009-11-07 09:33:41 UTC (rev 1616)
@@ -92,7 +92,6 @@
WARN("Signal %d received.\n", signo);
if (!main_pid || (main_pid == getpid())) {
- unlink(pid_file.c_str());
static AmMutex clean_up_mut;
static AmCondition<bool> need_clean(true);
@@ -118,6 +117,8 @@
INFO("Finished.\n");
+ unlink(pid_file.c_str());
+
exit(0);
}
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev