VirtualBox

Ignore:
Timestamp:
Aug 19, 2014 12:48:42 PM (10 years ago)
Author:
vboxsync
Message:

VBoxSVC: resolve undesirable freeze on shutdown.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp

    r52369 r52413  
    32293229    }
    32303230
     3231    /* Double-ckeck if we already allowed to quit. */
     3232    if ((tsStart + VBOX_XPCOM_SHUTDOWN_TIMEOUT_MS ) < RTTimeMilliTS() || mWorkers.Count() == 0)
     3233        break;
     3234
    32313235    // Relax a bit before the next round.
    32323236    RTThreadSleep(10);
     
    32353239  LOG(("There are %d thread(s) left.\n", mWorkers.Count()));
    32363240
    3237   // If there are some running threads left, just forget about them.
    3238   mWorkers.Clear();
     3241  // If there are some running threads left, terminate the process.
     3242  if (mWorkers.Count() > 0)
     3243    exit(1);
     3244
    32393245
    32403246  nsAutoMonitor::DestroyMonitor(mWaitingWorkersMon);
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