XQuartz: Don't sleep forever on exit if usleep() returns an error

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
Jeremy Huddleston Sequoia 2013-11-10 11:40:27 -08:00
parent ebcc1c214c
commit f70a8bf371

View File

@ -936,7 +936,7 @@ extern char *bundle_id_prefix;
- (void) applicationWillTerminate:(NSNotification *)aNotification
{
unsigned remain;
int remain;
[X11App prefs_synchronize];
/* shutdown the X server, it will exit () for us. */