On some Unix-like platforms, '''SIGPWR''' is the symbolic name for the signal sent to Computer_programs when the system experiences a Power_failure. '''SIGPWR''' is a symbolic constant defined in signal.h
. Symbolic signal names are used as signal numbers can vary across platforms.
On Linux, '''SIGINFO''' is a synonym for SIGPWR.
{{Signal|SIGPWR (non-POSIX)|Power failure (System V)|Abnormal termination of the process.}}
None.
{{SignalEnd}}
==Etymology==
'''SIG-''' is a common prefix for signal names. '''PWR''' is an abbreviation for '''power'''. '''INFO''' refers to the system ''informing'' processes of a critical situation.
==Usage==
SIGPWR is sent when a power failure is imminent; for example, when the Battery is running low on a Laptop or when a power failure forces a server to switch to an Uninterruptible_power_supply. Programs would be expected to synchronise state to permanent storage to ensure that if the system powers off data is not lost.
On some operating systems, the Boehm_garbage_collector uses SIGXCPU and SIGPWR to synchronise cross-thread garbage collection.
{{Signals}}