mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 14:34:29 +00:00
Log in OsVendorFatalError() in a signal safe manner
The function can be called from a fatal signal handler. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Keith Packard
parent
d51aebdbf9
commit
505c8a2b2c
@@ -1058,16 +1058,16 @@ void
|
||||
OsVendorFatalError(const char *f, va_list args)
|
||||
{
|
||||
#ifdef VENDORSUPPORT
|
||||
ErrorF("\nPlease refer to your Operating System Vendor support pages\n"
|
||||
"at %s for support on this crash.\n", VENDORSUPPORT);
|
||||
ErrorFSigSafe("\nPlease refer to your Operating System Vendor support "
|
||||
"pages\nat %s for support on this crash.\n", VENDORSUPPORT);
|
||||
#else
|
||||
ErrorF("\nPlease consult the " XVENDORNAME " support \n"
|
||||
"\t at " __VENDORDWEBSUPPORT__ "\n for help. \n");
|
||||
ErrorFSigSafe("\nPlease consult the " XVENDORNAME " support \n\t at "
|
||||
__VENDORDWEBSUPPORT__ "\n for help. \n");
|
||||
#endif
|
||||
if (xf86LogFile && xf86LogFileWasOpened)
|
||||
ErrorF("Please also check the log file at \"%s\" for additional "
|
||||
"information.\n", xf86LogFile);
|
||||
ErrorF("\n");
|
||||
ErrorFSigSafe("Please also check the log file at \"%s\" for additional "
|
||||
"information.\n", xf86LogFile);
|
||||
ErrorFSigSafe("\n");
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user