forked from AuroraMiddleware/gtk
Call _exit instead of exit from X error handlers
This is because running atexit() handlers from there is usually bad news. https://bugzilla.gnome.org/show_bug.cgi?id=646338
This commit is contained in:
parent
d80d834be8
commit
31c036b9b4
@ -2372,7 +2372,7 @@ _gdk_x11_display_error_event (GdkDisplay *display,
|
||||
#else /* !G_ENABLE_DEBUG */
|
||||
g_warning ("%s\n", msg);
|
||||
|
||||
exit (1);
|
||||
_exit (1);
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
}
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ gdk_x_io_error (Display *display)
|
||||
display ? DisplayString (display) : gdk_get_display_arg_name ());
|
||||
}
|
||||
|
||||
exit(1);
|
||||
_exit (1);
|
||||
}
|
||||
|
||||
/* X error handler. Keep the name the same because people are used to
|
||||
|
Loading…
Reference in New Issue
Block a user