maxdraco

Signal (SIGTERM, SIGKILL)

A short notice the operating system sends a running program, such as a request to stop.

Concept Programming and AI

On Unix-like systems such as Linux and macOS, a signal is a numbered notice the system delivers to a running program. SIGTERM politely asks a program to shut down, and the program can catch it to finish its work and exit cleanly. SIGKILL ends it at once and cannot be caught. Tools like Kubernetes send SIGTERM first and SIGKILL after a grace period, so a program that ignores SIGTERM is always stopped the slow, hard way.

See also

  • Daemon (background service) A program that runs in the background, with no window, waiting to do its job.
  • Exit code The number a program hands back when it finishes: zero for success, anything else for failure.
  • Kubernetes Open-source system for running and managing containers across many machines.
  • AI Artificial intelligence: software that performs tasks usually thought to need human judgement.
  • API A defined way for one program to ask another for data or actions.
  • Endpoint (route) One specific address on a web service that a program can call to do one job.
  • Environment variable A named setting a running program inherits from whatever started it.
  • Git Free software that records every change to a set of files, used to keep the history of most software projects.

Sources

  1. signal.h (POSIX.1-2024)The Open Group / IEEEofficial healthy, checked 2026-11-15 archived copy
  2. Signal (IPC)Wikipedia healthy, checked 2026-11-15 archived copy