systemsignals
System signals are a mechanism used by Unix-like operating systems to deliver asynchronous notifications to a running process. They are generated by the kernel in response to events such as user actions, program errors, or timer expirations, and are delivered to a thread within the target process. Each signal is identified by a number and a symbolic name defined by the POSIX standard (for example, SIGHUP, SIGINT, SIGTERM, SIGKILL, SIGSEGV). Signals can indicate events like a terminal hangup, an interrupt from the keyboard, a request to terminate, or a segmentation fault.
Signals have default actions, which may terminate the process, ignore the signal, stop or continue its execution,
Threaded programs can block or mask signals, and signals may be delivered to any thread in the
Common usage patterns include graceful shutdown with SIGTERM, configuration reloads with SIGHUP, and user-defined actions with
---