Changeset 21890 in vbox
- Timestamp:
- Jul 30, 2009 2:22:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/init.cpp
r20911 r21890 124 124 125 125 126 /** 127 * atexit callback. 128 * 129 * This makes sure any loggers are flushed and will later also work the 130 * termination callback chain. 131 */ 132 static void rtR3ExitCallback(void) 133 { 134 if (g_cUsers > 0) 135 { 136 PRTLOGGER pLogger = RTLogGetDefaultInstance(); 137 if (pLogger) 138 RTLogFlush(pLogger); 139 140 pLogger = RTLogRelDefaultInstance(); 141 if (pLogger) 142 RTLogFlush(pLogger); 143 } 144 } 145 126 146 127 147 #ifndef RT_OS_WINDOWS … … 269 289 setlocale(LC_CTYPE, ""); 270 290 271 /* Fork callbacks. */291 /* Fork and exit callbacks. */ 272 292 #if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2) 273 293 rc = pthread_atfork(NULL, NULL, rtR3ForkChildCallback); 274 294 AssertMsg(rc == 0, ("%d\n", rc)); 275 295 #endif 296 atexit(rtR3ExitCallback); 276 297 277 298 #ifdef IPRT_WITH_ALIGNMENT_CHECKS
Note:
See TracChangeset
for help on using the changeset viewer.