You have the capability to specify that all child processes started in the session will be terminated when the session ends. Terminating child processes upon a session ending is the desired behavior. However scenarios do exist where you want the session to terminate but you would like spawned child processes to continue. In either case Graceful Termination is attempted first. This feature is not available in Windows NT because the necessary operating system infrastructure did not exist until Windows 2000 and later (Windows XP/VISTA/2000/2003).
The environment variable for controlling the termination of child processes for a session is:
For example, to select automatic termination of all child processes you would enter:
in the Logon Script for a particular user.
And to disable automatic termination of all child processes started in the session you would enter:
in the Logon Script for a particular user.
The default setting is enabled.