When using sendevent -E KILLJOB -J jobname, how does AutoSys kill the Windows process?

Document ID : KB000049912
Last Modified Date : 14/02/2018
Show Technical Document Details


When using sendevent -E KILLJOB -J jobname, could you please explain specifically how AutoSys kills the Windows processes?


To terminate a process on windows, AutoSys release 4.5.x uses "TerminateProcess" windows API function.

The Workload Automation AE Agent release 11.3 makes use of "EnumProcesses" and "TerminateProcess" API's to kill the process tree.

The Agent gets the list of child processes using EnumProcesses and then attempts to kill each process using TerminateProcess API.