VirtualBox

Ticket #14933: pthread_join_loop.patch

File pthread_join_loop.patch, 720 bytes (added by GenyMobile, 9 years ago)
  • src/VBox/Runtime/r3/linux/sched-linux.cpp

    old new  
    321321         * Wait for the thread to finish.
    322322         */
    323323        void *pvRet = (void *)-1;
    324         do
    325         {
    326             rc = pthread_join(Thread, &pvRet);
    327         } while (errno == EINTR);
     324        rc = pthread_join(Thread, &pvRet);
    328325        if (rc)
    329326            return RTErrConvertFromErrno(rc);
    330327        return (int)(uintptr_t)pvRet;

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy