VirtualBox

Changeset 29775 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 25, 2010 11:37:55 AM (15 years ago)
Author:
vboxsync
Message:

VBoxService.cpp: Same code everywhere, please.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r29762 r29775  
    443443
    444444#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.
    447448 */
    448449static void VBoxServiceWaitSignal(void)
     
    458459    pthread_sigmask(SIG_BLOCK, &signalMask, NULL);
    459460
     461    /* This loop is required on Solaris at least. FreeBSD doesn't know ERESTART. */
    460462    int rc;
    461 #ifndef RT_OS_FREEBSD
    462463    do
    463464    {
     
    466467    }
    467468    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          );
    473473
    474474    VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d (rc=%d)\n", iSignal, rc);
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