xlib: do exit() on IOError instead of abort()
authorPhil Sutter <phil@nwl.cc>
Thu, 19 Nov 2009 22:00:15 +0000 (23:00 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 19 Nov 2009 22:04:09 +0000 (23:04 +0100)
The IOError happens every time I close conky's normal own window, so I
guess the situation is not as abnormal as abort() indicates. Calling
exit() instead should really suffice and give the process a chance to
clean up (by calling destructor routines for instance).

src/conky.c

index 7a1909d..7561601 100644 (file)
@@ -4514,7 +4514,7 @@ int x11_ioerror_handler(Display *d)
        NORM_ERR("X Error: Display %lx\n",
                        (long unsigned)d
                        );
-       abort();
+       exit(1);
 }
 #endif /* DEBUG */