~ubuntu-branches/ubuntu/lucid/libevent/lucid

« back to all changes in this revision

Viewing changes to evsignal.h

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2009-04-03 16:25:00 UTC
  • mfrom: (1.2.1 upstream) (5.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090403162500-w6b6o4tvsspyo0kz
Tags: 1.4.9-stable-1
* New upstream release
* Standards version is 3.8.1
* DH_COMPAT is 7
* Run dh_prep instead of dh_clen -k
* Don't conflict with libevent1; closes: #513325
* Ship the evdns manpage; closes: #448273
* Fix long description; closes: #509062
* Build depends on quilt
* Thanks Petr Salinger for 01-494709-GNU-kFreeBSD.patch; closes: #494709

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
 
        struct event_list signalqueue;
32
33
        struct event ev_signal;
33
34
        int ev_signal_pair[2];
34
35
        int ev_signal_added;
35
36
        volatile sig_atomic_t evsignal_caught;
 
37
        struct event_list evsigevents[NSIG];
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 *);