lsyncd/core/signal.h
2018-05-11 09:07:03 +02:00

28 lines
569 B
C

/*
| signal.h from Lsyncd -- the Live (Mirror) Syncing Demon
|
| Logging.
|
| License: GPLv2 (see COPYING) or any later version
| Authors: Axel Kittenberger <axkibe@gmail.com>
*/
#ifndef LSYNCD_SIGNAL_H
#define LSYNCD_SIGNAL_H
// set to 1 on hup signal or term signal
extern volatile sig_atomic_t hup;
extern volatile sig_atomic_t term;
extern volatile sig_atomic_t sigcode;
// initializes signal handling.
extern void signal_init( );
// FIXME
int l_onsignal( lua_State *L );
// notifies the mantle about signals
extern void signal_notify( lua_State *L );
#endif