summaryrefslogtreecommitdiffstats
path: root/lib/libevent/signal.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Apply commit e0e6958aa074a7714cd7c4aa779a1dfede3a03b1 from upstream.bluhm2015-01-061-14/+8
| | | | | | | | | | - 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@
* Fix whitespace errors in libevent.bluhm2014-10-301-3/+3
| | | | OK nicm@
* After removing all the #ifdef, the wrappers in evutil are ratherbluhm2014-10-291-14/+12
| | | | | useless. Let libevent call the libc functions directly. OK nicm@
* Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.bluhm2014-10-181-5/+1
| | | | OK nicm@
* Remove #ifdef HAVE_.*_H, just include the header files.bluhm2014-10-171-9/+2
| | | | | Do not include sys/param.h. OK nicm@
* Remove #ifdef HAVE_CONFIG_H, there is no config.h file.bluhm2014-10-161-4/+1
| | | | OK nicm@
* iRemove the #ifdef WIN32 implementation from libevent.bluhm2014-10-081-17/+1
| | | | OK nicm@
* use reallocarray() to detect multiplicative integer overflow; obviousderaadt2014-10-081-2/+2
| | | | | pattern. This commit does not fix the non-obvious bloody horror of select.c.
* Remove the #ifdef HAVE_SIGACTION from libevent. The structbluhm2014-10-061-30/+1
| | | | | evsignal_info does not change, so no library crank. OK nicm@ deraadt@
* use FD_CLOEXEC instead of 1; from David Hillokan2013-04-291-2/+2
| | | | ok otto
* Update to 1.4.14b.nicm2010-07-121-6/+15
| | | | | | | | | | | | | | 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
* Update libevent to 1.4.13.nicm2010-04-211-45/+202
| | | | | | | | | | | | | 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
* Fix evsignal_del()'s use of sigaction(): fill in a sigaction structguenther2010-01-101-2/+7
| | | | | | | 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@
* Update to libevent 1.3e while retaining our local changes.brad2008-05-021-81/+66
| | | | | "No objection" millert@ "the diff looks and works fine" reyk@
* Update to libevent-1.3b while retaining our local changes. beck@ OKmillert2007-03-191-5/+3
|
* make write-end of signal socketpair non-blocking.deraadt2005-12-021-1/+3
| | | | | | | | | | 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
* lookup out of evsigcaught[] must be sig_atomic_t tooderaadt2005-12-021-2/+2
|
* save errno in signal handler since it does a system callderaadt2005-12-011-4/+8
| | | | | only access sig_atomic_t variables, to make it further save ok aaron
* zap trailing whitespaces, no binary changegrunk2005-07-021-2/+2
| | | | ok brad@ beck@
* update to libevent 1.0c; keep local changesbrad2005-04-221-16/+58
| | | | | | | | | | 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@
* backout. not discussed, and very wrong. bad bradderaadt2005-04-191-58/+16
|
* update to libevent 1.0c; keep local changesbrad2005-04-191-16/+58
|
* update to libevent 0.8; keep local changesbrad2004-04-281-11/+9
| | | | ok markus@
* get rid of config.h; ok miod@, millert@, deraadt@markus2003-07-101-1/+3
|
* update to libevent-0.7a.tar.gz; keep local changesmarkus2003-07-091-0/+164