Re: multiple signals per watcher

2008-09-30 Thread Marc Lehmann
On Tue, Sep 30, 2008 at 04:59:08PM +0200, Alejandro Mery <[EMAIL PROTECTED]> wrote: > please ignore this mail, I ran out of coffee :-\ > > I don't know why I thought signum was a bit mask Ah oh, feel free to ignore my reply then :) -- The choice of a Deliantra, the free c

Re: multiple signals per watcher

2008-09-30 Thread Marc Lehmann
On Tue, Sep 30, 2008 at 02:06:00PM +0200, Alejandro Mery <[EMAIL PROTECTED]> wrote: > I have an ev_signal watcher upon SIGTERM|SIGINT, but I just noticed ^C What should SIGTERM|SIGINT be? OR'ing two signal numbers together does not usually result in anything useful, and certainly is no magical wa

Re: multiple signals per watcher

2008-09-30 Thread Alejandro Mery
please ignore this mail, I ran out of coffee :-\ I don't know why I thought signum was a bit mask On Tue, Sep 30, 2008 at 2:06 PM, Alejandro Mery <[EMAIL PROTECTED]> wrote: > Hello, > > I have an ev_signal watcher upon SIGTERM|SIGINT, but I just noticed ^C > is not been catched by this watcher, o

Re: multiple signals per watcher

2008-09-30 Thread Brandon Black
Alejandro Mery wrote: Hello, I have an ev_signal watcher upon SIGTERM|SIGINT, but I just noticed ^C is not been catched by this watcher, only SIGTERM... are "multiple" signals on the same watcher supported by libev? You need to add one watcher per signal, but they can have the same callback

multiple signals per watcher

2008-09-30 Thread Alejandro Mery
Hello, I have an ev_signal watcher upon SIGTERM|SIGINT, but I just noticed ^C is not been catched by this watcher, only SIGTERM... are "multiple" signals on the same watcher supported by libev? btw, the example has a wrong _start()