Idris2Doc : System.Posix.Signal

System.Posix.Signal

(source)

Reexports

importpublic Data.C.Integer
importpublic System.Posix.Errno
importpublic System.Posix.Signal.Struct
importpublic System.Posix.Signal.Types

Definitions

kill : HasErrnoes=>EIO1f=>PidT->Signal->fes ()
  Sends a signal to a running process or a group of processes.

Totality: total
Visibility: export
raise : HasIOio=>Signal->io ()
  Sends a signal to the calling thread.

Totality: total
Visibility: export
sigqueue : HasErrnoes=>EIO1f=>PidT->Signal->CInt->fes ()
  Sends a realtime signal plus data word to a running process.

Note that `sig` must be in the range [SIGRTMIN, SIGRTMAX].

Totality: total
Visibility: export
sigprocmask : HasErrnoes=>EIO1f=>How->ListSignal->fes ()
  Adjust the process signal mask according to the given `How`
and signal set.

Totality: total
Visibility: export
abort : HasIOio=>io ()
  Terminates the application by raising `SIGABRT` and dumps core.

While `SIGABRT` can be handled with a signal handler, `abort` is
still guaranteed successfully terminate the process.

Totality: total
Visibility: export
pause : HasErrnoes=>EIO1f=>fes ()
  Suspends the current thread until a non-blocked signal is encountered.

Totality: total
Visibility: export
siggetprocmask : HasIOio=>io (ListSignal)
  Returns the current signal mask of the process.

Totality: total
Visibility: export
sigpending : HasIOio=>io (ListSignal)
  Returns the set of currently pending signals.

Totality: total
Visibility: export
sigsuspend : HasErrnoes=>EIO1f=>ListSignal->fes ()
  Atomically blocks the signals in `set`, then
pauses the thread (see `pause`) and restores the signal set
afterwards.

Totality: total
Visibility: export
sigwait : HasErrnoes=>EIO1f=>ListSignal->fesSignal
  Synchronously awaits one of the signals in `set`.

This is like `sigwaitinfo` but with a simpler API.

Totality: total
Visibility: export
sigwaitinfo : HasErrnoes=>EIO1f=>ListSignal->fesSiginfo
  Synchronously awaits one of the signals in `set`.

Note: Usually, the signals in `set` should first be blocked via
`sigprocmask`.

Totality: total
Visibility: export