VirtualBox

Changeset 33135 in vbox for trunk/src


Ignore:
Timestamp:
Oct 14, 2010 2:46:27 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66667
Message:

Runtime: Restart waitpid if it got interrupted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/process-posix.cpp

    r33134 r33135  
    385385                /* Must wait for the temporary process to avoid a zombie. */
    386386                int status = 0;
    387                 waitpid(pid, &status, 0);
     387                pid_t pidChild = 0;
     388
     389                /* Restart if we get interrupted. */
     390                do
     391                {
     392                    pidChild = waitpid(pid, &status, 0);
     393                } while (   pidChild == -1
     394                         && errno == EINTR);
     395
    388396                /* Assume that something wasn't found. No detailed info. */
    389397                if (status)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette