Skip to main content

Application Signals

When client commands (such as hcp) and services are executed by privilege separation, applications in the child process can take advantage of this signal and control the following operations.

The following signals are processed as the signals for service abort. The service will stop the processes of the application at that time, free the resources, and stop the process.

signal namedescriptionWindows
SIGINTTerminal interruption✓
SIGTERMTerminal end✓
SIGUSR1USR1 signal

The following signals are processed as the signals for abort signals based on the resource limit. The service will stop the processes of the application at that time, free the resources, and stop the process.

signal namedescriptionWindows
SIGUSR2USR2 signal
SIGXCPUCPU limit
SIGXFSZfile size limit

The following signals are processed as the signals for releasing resources. Right after releasing as many resources as possible (such as the HpFP socket descriptor and so on) and retransmitting (re-raise), the process will stop.

signal namedescriptionWindows
SIGHUPHung-up

Don’t use this signal for child processes, which may cause problems on the entire service running (may need to force-quit the service and restart).

The following signals are ignored.

signal namedescriptionWindows
SIGALRMAlarm
SIGPIPEPipe writing error

Signals other than these, such as SIGKILL, SIGABORT, and so forth, are not processed (behave following the operation system). Some of the resources may go unavailable (the HpFP socket descriptor and so on).

Don’t use this signal for child processes, which may cause problems on the entire service running (may need to force-quit the service and restart).

Signal numbers can be different depending on the platform. Please refer to each operation system manual.