summaryrefslogtreecommitdiff
path: root/lib/libevent/signal.c
AgeCommit message (Collapse)Author
2015-01-06Apply commit e0e6958aa074a7714cd7c4aa779a1dfede3a03b1 from upstream.Alexander Bluhm
- Avoid deadlock when activating signals. Fixes bug 3048812. Based on patch by Nicholas Marriott. The deadlock was ultimately fixed in a different way (by disabling reinit - see event.c r1.25). Add it now for consistency but without the Windows compatibility code. Convert the fnctl() calls to SOCK_CLOEXEC | SOCK_NONBLOCK to simplify the code. OK nicm@
2014-10-30Fix whitespace errors in libevent.Alexander Bluhm
OK nicm@
2014-10-29After removing all the #ifdef, the wrappers in evutil are ratherAlexander Bluhm
useless. Let libevent call the libc functions directly. OK nicm@
2014-10-18Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.Alexander Bluhm
OK nicm@
2014-10-17Remove #ifdef HAVE_.*_H, just include the header files.Alexander Bluhm
Do not include sys/param.h. OK nicm@
2014-10-16Remove #ifdef HAVE_CONFIG_H, there is no config.h file.Alexander Bluhm
OK nicm@
2014-10-08iRemove the #ifdef WIN32 implementation from libevent.Alexander Bluhm
OK nicm@
2014-10-08use reallocarray() to detect multiplicative integer overflow; obviousTheo de Raadt
pattern. This commit does not fix the non-obvious bloody horror of select.c.
2014-10-06Remove the #ifdef HAVE_SIGACTION from libevent. The structAlexander Bluhm
evsignal_info does not change, so no library crank. OK nicm@ deraadt@
2013-04-29use FD_CLOEXEC instead of 1; from David HillOkan Demirmen
ok otto
2010-07-12Update to 1.4.14b.Nicholas Marriott
From their change log: o Fix memory-leak of signal handler array with kqueue. [backport] o Make evutil_make_socket_nonblocking() leave any other flags alone. o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking(). o Re-add event_siglcb; some old code _was_ still using it. :( o Fix a free(NULL) in min_heap.h o Clean up properly when adding a signal handler fails. Also a local change to use an int rather than a long for fcntl(). ok guenther deraadt
2010-04-21Update libevent to 1.4.13.Nicholas Marriott
This is the core library only, the DNS parts are removed and it does not include the other extra bits (HTTP, DNS, and RPC), a separate port for these will appear in due course. Thanks to jsg, sthen, alek, gilles, jacekm, bernd and any others I've forgotten for testing/comments. Note that /usr/include/evdns.h should be removed after updating. ok deraadt
2010-01-10Fix evsignal_del()'s use of sigaction(): fill in a sigaction structPhilip Guenthe
and pass a pointer to that instead of passing SIG_DFL directly. (Probably the result of a bad signal()-->sigaction() translation...) ok deraadt@, nicm@, miod@
2008-05-02Update to libevent 1.3e while retaining our local changes.Brad Smith
"No objection" millert@ "the diff looks and works fine" reyk@
2007-03-19Update to libevent-1.3b while retaining our local changes. beck@ OKTodd C. Miller
2005-12-02make write-end of signal socketpair non-blocking.Theo de Raadt
every signal received writes 1 byte to the socketpair. if you are outside the libevent main loop too long, the socketpair might fill up. that write would then block, in a signal handler. related to this, yesterdy we changed the signal handler to not trash errno. as for the read end, there will be multiple libevent reads off the socketpair (100 bytes at a time) until the socketpair is empty again ok provos
2005-12-02lookup out of evsigcaught[] must be sig_atomic_t tooTheo de Raadt
2005-12-01save errno in signal handler since it does a system callTheo de Raadt
only access sig_atomic_t variables, to make it further save ok aaron
2005-07-02zap trailing whitespaces, no binary changeAlexander von Gernler
ok brad@ beck@
2005-04-22update to libevent 1.0c; keep local changesBrad Smith
no shared lib so no ABI/API check is necessary thanks to Alexander von Gernler for submitting another diff in an attempt to update libevent and for a use-after-free fix. ok henning@ deraadt@
2005-04-19backout. not discussed, and very wrong. bad bradTheo de Raadt
2005-04-19update to libevent 1.0c; keep local changesBrad Smith
2004-04-28update to libevent 0.8; keep local changesBrad Smith
ok markus@
2003-07-10get rid of config.h; ok miod@, millert@, deraadt@Markus Friedl
2003-07-09update to libevent-0.7a.tar.gz; keep local changesMarkus Friedl