Changeset 54019 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Jan 28, 2015 3:46:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r54010 r54019 60 60 */ 61 61 RTCRITSECT g_critSect; 62 /** Counter of how often our deamon has been respawned. */ 63 unsigned cRespawn = 0; 62 64 63 65 /** Exit with a fatal error. */ … … 65 67 { 66 68 char *pszCommand; 67 if (pszMessage )68 { 69 pszCommand = RTStrAPrintf2("notify-send \"VBoxClient: %s\"",69 if (pszMessage && cRespawn == 0) 70 { 71 pszCommand = RTStrAPrintf2("notify-send -t 5 \"VBoxClient: %s\"", 70 72 pszMessage); 71 73 if (pszCommand) … … 371 373 VBClFatalError(("Creating pid-file path: %Rrc\n", rc)); 372 374 if (fDaemonise) 373 rc = VbglR3Daemonize(false /* fNoChDir */, false /* fNoClose */, fRespawn, NULL);375 rc = VbglR3Daemonize(false /* fNoChDir */, false /* fNoClose */, fRespawn, &cRespawn); 374 376 if (RT_FAILURE(rc)) 375 377 VBClFatalError(("Daemonizing: %Rrc\n", rc));
Note:
See TracChangeset
for help on using the changeset viewer.