signame {fork}R Documentation

Obtain information about signals

Description

signame looks up signal information by the symbolic signal name. sigval looks up signal information by the numeric value. siglist returns a table of signal information.

Usage

signame(val)
sigval(name)
siglist()

Arguments

val Integer signal value.
name Symbolic signal name (with or without the SIG prefix).

Details

These functions return information stored in a table constructed at compile time.

Value

A list (signame, sigval) or data frame (siglist) containing the components:

name Symbolic name
val Integer value
desc Description

Author(s)

Gregory R. Warnes greg@random-technologies-llc.com

References

Unix "signal" man page.

See Also

getpid, exit, wait, kill, killall

Examples


   # look up the numeric value for SIGABT:
   sigval("SIGKILL")

   # the 'SIG' component can be ommitted:
   sigval("HUP")

   # now look up based on value
   signame(9)

   # and get a complete table of signal information
   siglist()

[Package fork version 1.2.1 Index]