VirtualBox

Ignore:
Timestamp:
Jul 29, 2014 7:54:57 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: make fatal error notification application-global.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display.cpp

    r52189 r52231  
    5757    long *paSizeHints;
    5858};
    59 
    60 /** Exit with a fatal error.
    61  * @todo Make this application global. */
    62 #define FatalError(format) \
    63 do { \
    64     char *pszMessage = RTStrAPrintf2 format; \
    65     LogRel(format); \
    66     doFatalError(pszMessage); \
    67 } while(0)
    68 
    69 static void doFatalError(char *pszMessage)
    70 {
    71     char *pszCommand;
    72     if (pszMessage)
    73     {
    74         pszCommand = RTStrAPrintf2("notify-send \"VBoxClient: %s\"",
    75                                    pszMessage);
    76         if (pszCommand)
    77             system(pszCommand);
    78     }
    79     exit(1);
    80 }
    8159
    8260/** Tell the VBoxGuest driver we no longer want any events and tell the host
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette