Skip to content

signal.c

unslot

Synopsis

int unslot(int sig)

Parameters

  • int sig - signal number

Returns

int - SIG_SLOT_OK if the slot was unregistered successfully. See include/signal.h for other return values.

Description

Unregister a slot for a signal.

emit

Synopsis

void emit(int sig, mixed arg...)

Parameters

  • int sig - signal number
  • mixed... arg - arguments to pass to the signal

Description

Emit a signal to all objects that have registered a slot for the signal.

slot

Synopsis

int slot(int sig, string func)

Parameters

  • int sig - signal number
  • string func - function to call when the signal is emitted

Returns

int - SIG_SLOT_OK if the slot was registered successfully. See include/signal.h for other return values.

Description

Register a slot for a signal.

signal_d

Synopsis

object signal_d()

Returns

object - signal daemon object

Description

Get the signal daemon object.