Handle SIGINT by calling ([NSApp terminate: NSApp]) to shut down

cleanly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@25368 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-08-02 07:31:37 +00:00
parent 07a077f3e7
commit efb48fbccb
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-08-02 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XGServer.m (+initializeBackend): Handle SIGINT by
calling ([NSApp terminate: NSApp]) to shut down cleanly.
2007-07-03 Sergii Stoian <soyan255@gmail.com>
* Source/cairo/CairoGState.m

View file

@ -356,6 +356,7 @@ _parse_display_name(NSString *name, int *dn, int *sn)
NSDebugLog(@"Initializing GNUstep x11 backend.\n");
[GSDisplayServer setDefaultServerClass: [XGServer class]];
signal(SIGTERM, terminate);
signal(SIGINT, terminate);
}
/**