signal function

  1. @Native<Pointer<Void> Function(Int, Pointer<Void>)>(Int, Pointer<Void>)>(isLeaf: true)
Pointer<Void> signal(
  1. int number,
  2. Pointer<Void> handler
)

signal(2): handler called on number from now on; the one before it, or SIG_ERR. A leaf call, like read. Only for a signal Dart can't watch: it replaces what ProcessSignal.watch set. The handler runs outside Dart, so it is a native function. The process's terminal holds SIGTSTP while raw (PosixTty).

Implementation

@Native<Pointer<Void> Function(Int, Pointer<Void>)>(isLeaf: true)
external Pointer<Void> signal(int number, Pointer<Void> handler);