SIGTERM

from Wikipedia, the free encyclopedia

SIGTERM refers to a signal for terminating program processes on POSIX -compatible platforms . The constant for SIGTERM is defined in the header file . Symbolic signal designations are used because the signal numbers can differ depending on the platform. signal.h

etymology

SIG is commonly used as a prefix for signals , while TERM is short for terminating .

use

SIGTERM is the standard signal that can be sent to processes using the kill or killall commands . SIGTERM initiates the termination of a process, but unlike the SIGKILL signal, it can be accepted by the process and then optionally interpreted or ignored. The intention is that the process is not stopped abruptly as with the SIGKILL, but has the opportunity to carry out necessary clean-up work (releasing network ports, writing cached data in files, etc.).