Changeset 735

Show
Ignore:
Timestamp:
07/07/08 15:22:06 (3 months ago)
Author:
mwhitworth
Message:

Call VmProcessRemove if available, fix locking.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/kernel/process.c

    r652 r735  
    338338 
    339339        /* Release all vmm areas */ 
    340 //      if (VmProcessRemove) 
    341 //      MmapProcessRemove(current); 
     340        if (VmProcessRemove) 
     341                VmProcessRemove(current); 
    342342 
    343343        if (VfsFreeFsContext) 
     
    373373                                        waiters will have a reference to the process in question anyway. */ 
    374374 
     375        SpinUnlockIrq(&procListLock); 
     376 
    375377        ThrSchedule(); 
    376  
    377         SpinUnlockIrq(&procListLock); 
    378378} 
    379379