SIGPWR: Difference between revisions
→Usage: partial revert; the Boehm garbage collector is not an operating system. |
|||
Line 12: | Line 12: | ||
==Usage== |
==Usage== |
||
SIGPWR is sent when a power failure is imminent; for example, when the [[battery (electricity)|battery]] is running low on a [[laptop]] or a power failure occurs. Upon receiving SIGPWR, an executing program has the opportunity to write its state to permanent storage. |
SIGPWR is sent when a power failure is imminent; for example, when the [[battery (electricity)|battery]] is running low on a [[laptop]] or a power failure occurs. Upon receiving SIGPWR, an executing program has the opportunity to write its state to permanent storage. |
||
On some operating systems, the [[Boehm garbage collector]] uses [[SIGXCPU]] and SIGPWR to synchronise cross-thread garbage collection. |
|||
==References== |
==References== |
Revision as of 22:01, 16 May 2011
Template:Infobox Computing signal
On some Unix-like platforms, SIGPWR is the signal sent to computer programs when the system experiences a power failure. The symbolic constant for SIGPWR is defined in the header file signal.h
. Symbolic signal names are used because signal numbers can vary across platforms.
On Linux, SIGINFO is a synonym for SIGPWR.[1]
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 a power failure occurs. Upon receiving SIGPWR, an executing program has the opportunity to write its state to permanent storage.
On some operating systems, the Boehm garbage collector uses SIGXCPU and SIGPWR to synchronise cross-thread garbage collection.