A follow-up question. Can the same signal be registered multiple times, each with a different void * context? Is the expectation that the callback will be called multiple times correct?
In the attached program, the callback function seems to be called only once, even though it is registered two times. I tried it in FreeBSD-4.11/libevent-1.1b, and RHEL-2.6.9/libevent-1.3e. In Freebsd, the last registered void * is given in the callback whereas in linux, it is the first one. But the callback happens only once. Is this a bug? -Subbu --- Niels Provos <[EMAIL PROTECTED]> wrote: > Hi Subbu, > > please, use signal_{set,add,del} for handling signals when you use libevent. > > Niels. > > On Dec 18, 2007 5:17 PM, Subbu Subramaniam <[EMAIL PROTECTED]> wrote: > > Hi, > > > > What is the right way to handle siganls while using libevent? > > > > Am I supposed to use signal_set()/signal_add() etc. calls, or am I supposed > to > > install my own signal handler and use event_sigcb and event_gotsig (or, am > I > > supposed to do both somehow?) > > > > Thanks > > > > -Subbu > > > > -- > > Subbu Subramaniam > > _______________________________________________ > > Libevent-users mailing list > > Libevent-users@monkey.org > > http://monkeymail.org/mailman/listinfo/libevent-users > > > > > -- Subbu Subramaniam
sigtest2.c
Description: 2062010864-sigtest2.c
_______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users