XQuartz: Don't sleep forever on exit if usleep() returns an error
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>
Sun, 10 Nov 2013 19:40:27 +0000 (11:40 -0800)
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>
Sun, 10 Nov 2013 19:40:27 +0000 (11:40 -0800)
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
hw/xquartz/X11Controller.m

index 737db42..3d094bf 100644 (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. */