Ignore:
Timestamp:
Jan 23, 2001, 12:59:45 PM (25 years ago)
Author:
sandervl
Message:

vio, thread exit fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/wprocess.cpp

    r4946 r5016  
    1 /* $Id: wprocess.cpp,v 1.111 2001-01-14 17:16:55 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.112 2001-01-23 11:59:45 sandervl Exp $ */
    22
    33/*
     
    398398    //Flush and delete all open memory mapped files
    399399    Win32MemMap::deleteAll();
     400
     401    //SvL: We must make sure no threads are still suspended (with SuspendThread)
     402    //     OS/2 seems to be unable to terminate the process otherwise (exitlist hang)
     403    TEB *teb = threadList;
     404    threadListMutex.enter();
     405    while(teb) {
     406        ResumeThread(teb->o.odin.hThread);
     407        teb = teb->o.odin.next;
     408    }
     409    threadListMutex.leave();
    400410
    401411    //Restore original OS/2 TIB selector
     
    15881598        DWORD fileAttr;
    15891599
    1590         //TODO: doesn't work for directories with spaces!
    15911600        while(*exename != 0) {
    15921601             while(*exename != 0 && *exename != ' ')
Note: See TracChangeset for help on using the changeset viewer.