Posix_signalPOSIX signal handling bindings.
This module provides OCaml bindings to POSIX signal functions defined in signal.h.
It includes functions for manipulating signal sets and controlling signal delivery to threads and processes.
type signal = [ | `SigabrtAbnormal termination
*)| `SigalrmAlarm clock
*)| `SigbusBus error
*)| `SigchldChild process terminated
*)| `SigcontContinue if stopped
*)| `SigfpeFloating-point exception
*)| `SighupHangup
*)| `SigillIllegal instruction
*)| `SigintInteractive attention signal
*)| `SigkillKill (cannot be caught or ignored)
*)| `SigpipeBroken pipe
*)| `SigquitQuit
*)| `SigsegvSegmentation fault
*)| `SigstopStop (cannot be caught or ignored)
*)| `SigtermTermination request
*)| `SigtstpTerminal stop
*)| `SigttinBackground read from terminal
*)| `SigttouBackground write to terminal
*)| `Sigusr1User-defined signal 1
*)| `Sigusr2User-defined signal 2
*)| `SigtrapTrace/breakpoint trap
*)| `SigurgUrgent data on socket
*)| `SigxcpuCPU time limit exceeded
*)| `Sigxfsz ]POSIX signals.
File size limit exceeded
type action = [ | `Sig_blockAdd signals to the mask
*)| `Sig_setmaskSet the mask to the specified signals
*)| `Sig_unblockRemove signals from the mask
*) ]Actions for modifying the signal mask.
val sigemptyset : unit -> sigsetCreate an empty signal set. See sigemptyset(3).
Add a signal to a signal set. See sigaddset(3).
Test whether a signal is in a signal set. See sigismember(3).
Examine and change the signal mask of the calling thread.
See pthread_sigmask(3).
Examine and change the signal mask of the calling process.
See sigprocmask(2).
Note: In multi-threaded programs, use pthread_sigmask instead.