Changeset 29775 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- May 25, 2010 11:37:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r29762 r29775 443 443 444 444 #ifndef RT_OS_WINDOWS 445 /* 446 * Block all important signals, then explicitly wait until one of these signal arrives. 445 /** 446 * Block all important signals, then explicitly wait until one of these 447 * signal arrives. 447 448 */ 448 449 static void VBoxServiceWaitSignal(void) … … 458 459 pthread_sigmask(SIG_BLOCK, &signalMask, NULL); 459 460 461 /* This loop is required on Solaris at least. FreeBSD doesn't know ERESTART. */ 460 462 int rc; 461 #ifndef RT_OS_FREEBSD462 463 do 463 464 { … … 466 467 } 467 468 while ( rc == EINTR 468 || rc == ERESTART); 469 #else 470 iSignal = -1; 471 rc = sigwait(&signalMask, &iSignal); 472 #endif 469 #ifdef ERESTART 470 || rc == ERESTART 471 #endif 472 ); 473 473 474 474 VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d (rc=%d)\n", iSignal, rc);
Note:
See TracChangeset
for help on using the changeset viewer.