multiple signals per watcher
Brandon Black
blblack at gmail.com
Tue Sep 30 17:01:38 CEST 2008
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 function. If you look at "kill -l", you will see that signal
numbers are not a bitmask anyways.
-- Brandon
More information about the libev
mailing list