signame: Obtain information about signals

Description Usage Arguments Details Value Author(s) References See Also Examples

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

1
2
3

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@warnes.net

References

Unix "signal" man page.

See Also

getpid, exit, wait, kill, killall

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
   # 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()

warnes/fork documentation built on May 4, 2019, 12:59 a.m.