flux_signal_watcher_create(3)
SYNOPSIS
#include <flux/core.h>
typedef void (*flux_watcher_f)(flux_reactor_t *r,
flux_watcher_t *w,
int revents,
void *arg);
flux_watcher_t *flux_signal_watcher_create (flux_reactor_t *r,
int signum,
flux_watcher_f callback,
void *arg);
int flux_signal_watcher_get_signum (flux_watcher_t *w);
Link with -lflux-core.
DESCRIPTION
flux_signal_watcher_create()
creates a reactor watcher that
monitors for receipt of signal signum
.
The callback revents
argument should be ignored.
When one callback
is shared by multiple watchers, the signal number that
triggered the event can be obtained with
flux_signal_watcher_get_signum()
.
RETURN VALUE
flux_signal_watcher_create()
returns a flux_watcher_t
object
on success. On error, NULL is returned, and errno
is set appropriately.
ERRORS
- ENOMEM
Out of memory.
RESOURCES
Flux: http://flux-framework.org
Flux RFC: https://flux-framework.readthedocs.io/projects/flux-rfc