Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/lib-signals.h @ 9191:b340ecb24469 HEAD
Fix VPATH build of RQUOTA support.
Some rpcgen derive #include "..." paths from the infile argument.
This will be off for VPATH builds, as the generated rquota_xdr.c
code will look in $(srcdir), but we'll generate the rquota.h file in
$(builddir). Play safe and copy rquota.x to $(builddir) first.
This fixes the build on openSUSE 11.1.
author | Matthias Andree <matthias.andree@gmx.de> |
---|---|
date | Tue, 07 Jul 2009 21:01:36 +0200 |
parents | 3d2a48f73f86 |
children |
line wrap: on
line source
#ifndef LIB_SIGNALS_H #define LIB_SIGNALS_H #include <signal.h> typedef void signal_handler_t(const siginfo_t *si, void *context); /* Convert si_code to string */ const char *lib_signal_code_to_str(int signo, int sicode); /* Set signal handler for specific signal. If delayed is TRUE, the handler will be called later, ie. not as a real signal handler. */ void lib_signals_set_handler(int signo, bool delayed, signal_handler_t *handler, void *context); /* Ignore given signal. */ void lib_signals_ignore(int signo, bool restart_syscalls); void lib_signals_unset_handler(int signo, signal_handler_t *handler, void *context); /* Remove and add the internal I/O handler back. This is necessary to get the delayed signals to work when using multiple I/O loops. */ void lib_signals_reset_ioloop(void); void lib_signals_init(void); void lib_signals_deinit(void); #endif