Author: mlytwyn
Date: Tue Dec 8 01:39:16 2015
New Revision: 39222
URL: http://svn.gna.org/viewcvs/gnustep?rev=39222&view=rev
Log:
Add looging at exit statements
Modified:
libs/back/branches/gnustep_testplant_branch/Tools/gpbs.m
Modified: libs/back/branches/gnustep_testplant_branch/Tools/gpbs.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/back/branches/gnustep_testplant_branch/Tools/gpbs.m?rev=39222&r1=39221&r2=39222&view=diff
==============================================================================
--- libs/back/branches/gnustep_testplant_branch/Tools/gpbs.m (original)
+++ libs/back/branches/gnustep_testplant_branch/Tools/gpbs.m Tue Dec 8
01:39:16 2015
@@ -993,6 +993,7 @@
[connections removeObjectIdenticalTo: connection];
if (auto_stop == YES && [connections count] == 0)
{
+ NSLog(@"no connection and auto-stop enabled - exiting...");
exit(EXIT_SUCCESS);
}
return self;
@@ -1066,9 +1067,10 @@
/*
* Prevent recursion.
*/
-if (beenHere == YES)
- {
- abort();
+ if (beenHere == YES)
+ {
+ NSLog(@"%s:been here - aborting...", __PRETTY_FUNCTION__);
+ abort();
}
beenHere = YES;
@@ -1077,6 +1079,7 @@
*/
if (sig == SIGTERM)
{
+ NSLog(@"%s:SIGTERM - aborting...", __PRETTY_FUNCTION__);
exit(EXIT_FAILURE);
}
@@ -1100,11 +1103,13 @@
if (action == YES)
{
+ NSLog(@"%s:action == YES - aborting...", __PRETTY_FUNCTION__);
abort();
}
else
{
fprintf(stderr, "gpbs killed by signal %d\n", sig);
+ NSLog(@"%s:gpbs killed by signal %d\n", __PRETTY_FUNCTION__, sig);
exit(sig);
}
}
@@ -1451,6 +1456,7 @@
}
[[NSRunLoop currentRunLoop] run];
+ NSLog(@"%s:run loop completed - exiting...", __PRETTY_FUNCTION__);
RELEASE(server);
RELEASE(pool);
exit(EXIT_SUCCESS);
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs