tcllux::signal(n) 1.0 tcllux_signal "tcllux::signal"

Name

tcllux::signal - TclLux signal

Table Of Contents

Synopsis

  • package require Tcl 8.6
  • package require tcllux::signal ?1.0?

Description

The TclLux signal Tcl extension provides signal information. A signal argument can be a number or a signal name. A signal name is case-insensitive and may be prefixed with "sig".

COMMANDS

lux signal signals

Returns a list of dicts. Keys: name. Values: descr. Index in list is signal number.

lux signal set signal ?action? ?send?

Returns signal info if only signal supplied. If action is default then the system default action will be taken upon receipt of the signal. If action is ignore then the signal will be ignored. If action is a Tcl channel then data will be written to the channel upon receipt of the signal. If send is signal then the signal number will be written to the channel as one byte. If send is timestamp then a timestamp (seconds and nanoseconds) of when the signal was received will be written to the channel as two longs. The default for send is signal. Returns an empty string.

lux signal send signal pid

Send signal signal to process pid. Returns an empty string.

See Also

signal(3)

Keywords

signal, unix

Category

UNIX