Element: database.signal ( )

Type

numeric func

Description

A function to send a signal to the interface process linked to database. 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.

The code of the function cannot be redefined.

Note: This function has nothing to do with signal identifiers, which are completely different to low-level Unix signals.

Parameters

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

The function may be called in one of two ways:

# Assume mydb is the database identifier.
database.signal(mydb,9)

or

mydb.signal(9)