Element: channel.signal ( )

Type

numeric func

Description

A function to send a signal to channel. The function takes a numeric parameter whose value is the Unix signal number to be sent, e.g. SIGINT is 2, SIGKILL is 9 . This function has no effect on Windows systems.

A value of 0 is returned when successful; 1 is returned on error.

This element is applicable only to external process and server channels.

The code of the function cannot be redefined.

Parameters

channel.signal (<channel>,<num>)

The function may be called in one of two ways:

# Assume mychan is the channel identifier.
channel.signal(mychan,9)

or

mychan.signal(9)