Make terminating on signal via NSApp conditional on NSApp actually existing. This allows you to kill applications with ^C if they are using AppKit but not NSApplication.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@29016 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2009-11-15 13:57:34 +00:00
parent 43eaa1d512
commit ed0e764447

View file

@ -46,7 +46,14 @@
static void
terminate(int sig)
{
[NSApp terminate: NSApp];
if (nil != NSApp)
{
[NSApp terminate: NSApp];
}
else
{
exit(1);
}
}
#ifdef HAVE_WRASTER_H