3.10.3 Job processing during forced termination (Windows only)
The following table describes job processing in Windows during forced termination.
If you use the trap command to define processing for immediate termination of a process by using a function such as TerminateProcess, specify TERM in the TRAP_ACTION_SIGTERM parameter.
Forced termination method |
When an operation is not defined with the trap command |
When an operation is defined with the trap command |
|
---|---|---|---|
Control signal |
CTRL + C CTRL + BREAK CTRL_CLOSE_EVENT |
The control signal is sent to all process groups that are running as the root job, child jobs, and commands.
|
Operation cannot be defined with the trap command. |
CTRL_LOGOFF_EVENT |
Terminates immediately without performing postprocessing because OS logoff and shutdown processing take precedence. |
Operation cannot be defined with the trap command. |
|
CTRL_SHUTDOWN_EVENT |
|||
Immediate termination of process by a means such as TerminateProcess |
|
|
- Note
-
When the trap command is used and - is set for the operation, the command resets the previously specified action setting for the specified method so that the method is not associated with any action setting.