Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


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.

Table 3‒16: Job processing during forced termination

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.

  • Processing of the root job (adshexec.exe) that received the control signal

    Child process adshexecsub.exe performs postprocessing, and then terminates without executing subsequent scripts. adshexec.exe that received the control signal waits for termination of the child process, and then terminates itself.

  • Processing of the root job (adshexecsub.exe) that received the control signal and its child jobs

    adshexecsub.exe that received the control signal outputs the KNAX7896-I message, performs postprocessing, and then terminates without executing subsequent scripts.

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

  • If the root job (adshexec.exe) is subject to immediate termination

    The target adshexec.exe is terminated immediately, but adshexecsub.exe of its child processes and the child jobs perform postprocessing, and then terminate without executing subsequent scripts.

  • If the root job (adshexecsub.exe) is subject to immediate termination

    The target adshexecsub.exe is terminated immediately without performing postprocessing (do not perform immediate termination on this process).

  • If a child job is subject to immediate termination

    The target child job is terminated immediately without performing postprocessing (do not perform immediate termination on this process). The parent job of the terminated child job performs postprocessing according to the processing that occurs when a child process is terminated with an error and return code 1.

  • If the root job (adshexec.exe) is subject to immediate termination

    The target adshexec.exe is terminated immediately, but adshexecsub.exe of its child processes and the child jobs perform the operation defined with the trap command, perform postprocessing, and then terminate.

  • If the root job (adshexecsub.exe) is subject to immediate termination

    The target adshexecsub.exe is terminated immediately without performing postprocessing (do not perform immediate termination on this process).

  • If a child job is subject to immediate termination

    The target child job is terminated immediately without performing postprocessing (do not perform immediate termination on this process). The parent job of the terminated child job performs postprocessing according to the processing that occurs when a child process is terminated with an error and return code 1.

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.