]> granicus.if.org Git - libevent/commit
Warn when using the error-prone EV_SIGNAL interface in an error-prone way. Also...
authorNick Mathewson <nickm@torproject.org>
Wed, 15 Sep 2010 05:08:39 +0000 (01:08 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 15 Sep 2010 05:12:01 +0000 (01:12 -0400)
commit720bd933c8a4e9f0b850be075e055eea98767665
treefbea95ec2aa21a50d566681350af35fbb90ff361
parent040a019f52a7933b2478fe41c3ab0b56835012b1
Warn when using the error-prone EV_SIGNAL interface in an error-prone way.  Also, fix a couple of race conditions in signal.c

When using the signal.c signal backend, Libevent currently only allows
one event_base to actually receive signals at a time.  (This has been
the behavior since at least 1.4 and probably much earlier.)  Now, we
detect and warn if you're likely to be racing about which signal goes
to which thread.

We also add a lock to control modifications of the evsig_base field,
to avoid race conditions like those found by Jason Toffaletti.

Also, more comments.  Comments are good.
event.c
evsignal-internal.h
signal.c
test/regress.c