Set the process exit status. Modified: trunk/reactos/ntoskrnl/ps/kill.c _____
Modified: trunk/reactos/ntoskrnl/ps/kill.c --- trunk/reactos/ntoskrnl/ps/kill.c 2005-08-11 21:56:28 UTC (rev 17321) +++ trunk/reactos/ntoskrnl/ps/kill.c 2005-08-12 12:10:33 UTC (rev 17322) @@ -261,6 +261,7 @@
happens when the last thread just terminates without explicitly terminating the process. */ CurrentProcess->ExitTime = CurrentThread->ExitTime; + CurrentProcess->ExitStatus = ExitStatus; }
/* Check if the process has a debug port */ @@ -573,6 +574,7 @@ we kill ourselves to prevent threads outside of our process trying to kill us */ KeQuerySystemTime(&Process->ExitTime); + Process->ExitStatus = ExitStatus;
/* Only master thread remains... kill it off */ if (CurrentThread->ThreadsProcess == Process) {