[ros-dev] [ros-diffs] [aandrejevic] 62892: [NTVDM] Quit when ntvdm becomes the last process attached to the console.
Thomas Faber
thomas.faber at reactos.org
Wed Apr 23 00:48:41 UTC 2014
On 2014-04-22 22:46, aandrejevic at svn.reactos.org wrote:
> --- branches/ntvdm/subsystems/ntvdm/ntvdm.c [iso-8859-1] (original)
> +++ branches/ntvdm/subsystems/ntvdm/ntvdm.c [iso-8859-1] Tue Apr 22 20:46:50 2014
> @@ -196,6 +197,11 @@
> EmulatorInterrupt(0x23);
> break;
> }
> + case CTRL_LAST_CLOSE_EVENT:
> + {
> + if (CommandThread) TerminateThread(CommandThread, 0);
> + break;
> + }
> default:
> {
> /* Stop the VDM if the user logs out or closes the console */
Wasn't there an event to tell that thread to exit?
Using TerminateThread like this feels icky.
More information about the Ros-dev
mailing list