VirtualBox

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


Ignore:
Timestamp:
May 18, 2010 3:59:51 PM (15 years ago)
Author:
vboxsync
Message:

VBoxService: Another shot at the solaris SIGCHLD/exec problem.

File:
1 edited

Legend:

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

    r29644 r29647  
    455455    pthread_sigmask(SIG_BLOCK, &signalMask, NULL);
    456456
     457    int rc;
    457458    do
     459    {
    458460        iSignal = -1;
    459     while (   sigwait(&signalMask, &iSignal) == -1
    460            && (   errno == EINTR
    461                || errno == ERESTART
    462                || errno == ENOENT));
    463 
    464     VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d (errno=%d)\n", iSignal, errno);
     461        rc = sigwait(&signalMask, &iSignal);
     462    }
     463    while (   rc == EINTR
     464           || rc == ERESTART);
     465
     466    VBoxServiceVerbose(3, "VBoxServiceWaitSignal: Received signal %d (rc=%d)\n", iSignal, rc);
    465467}
    466468#endif /* !RT_OS_WINDOWS */
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