Supported Signals

March 8, 2026 · View on GitHub

killport supports the following signals via the -s, --signal flag. The default is SIGKILL.

Gentle Signals

These signals can generally be caught and handled by processes for graceful shutdown.

SignalDescription
SIGTERMTermination signal (graceful shutdown)
SIGINTInterrupt from keyboard (Ctrl+C)
SIGHUPHangup — terminal closed or parent process died
SIGUSR1User-defined signal 1
SIGUSR2User-defined signal 2
SIGCONTContinue if stopped
SIGALRMTimer signal
SIGVTALRMVirtual timer expired
SIGPROFProfiling timer expired
SIGWINCHWindow size change
SIGURGUrgent condition on socket
SIGCHLDChild status has changed
SIGIOI/O now possible
SIGPIPEBroken pipe (write to pipe with no readers)
SIGPWRPower failure
SIGSYSBad argument to routine

Disruptive Signals

These signals are harder to handle and often terminate the process abruptly or produce a core dump.

SignalDescription
SIGQUITQuit from keyboard and dump core
SIGABRTAbort signal from abort()
SIGTSTPStop typed at terminal
SIGTTINTerminal input for background process
SIGTTOUTerminal output for background process
SIGSTOPStop process (cannot be caught)
SIGSEGVInvalid memory reference
SIGBUSBus error (bad memory access)
SIGFPEFloating-point exception
SIGILLIllegal instruction
SIGTRAPTrace/breakpoint trap

Definitive Signals

Cannot be caught or ignored.

SignalDescription
SIGKILLKill signal — immediate, unconditional termination

Usage

# Graceful termination
killport -s sigterm 8080

# Immediate kill (default)
killport -s sigkill 8080

# Interrupt
killport -s sigint 8080

Note: Signal availability varies by platform. Not all signals are available on Windows.