~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to extra/libevent/evsignal.h

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#ifndef _EVSIGNAL_H_
28
28
#define _EVSIGNAL_H_
29
29
 
 
30
typedef void (*ev_sighandler_t)(int);
 
31
 
30
32
struct evsignal_info {
31
33
        struct event_list signalqueue;
32
34
        struct event ev_signal;
34
36
        int ev_signal_added;
35
37
        volatile sig_atomic_t evsignal_caught;
36
38
        sig_atomic_t evsigcaught[NSIG];
 
39
#ifdef HAVE_SIGACTION
 
40
        struct sigaction **sh_old;
 
41
#else
 
42
        ev_sighandler_t **sh_old;
 
43
#endif
 
44
        int sh_old_max;
37
45
};
38
46
void evsignal_init(struct event_base *);
39
47
void evsignal_process(struct event_base *);