|
ae6ece02
|
2010-04-21T01:15:19
|
|
Clean up properly when adding a signal handler fails.
Previously, when a signation() or signal() call failed, we would free
the element we added to sh_old, but not actually clear the pointer.
This would leave a dangling pointer in sh_old that could cause a
crash later.
|
|
01f3775b
|
2009-11-21T01:11:49
|
|
Fix memory-leak of signal handler array with kqueue. [backport]
It turns out that kqueue_dealloc wasn't calling evsig_dealloc()
(because it doesn't use the main signal handler logic) so the sh_old
array was leaking.
This patch also introduces a fix in evsig_dealloc() where we set
the sh_old array to NULL when we free it, so that main/fork can pass.
|
|
499d0039
|
2009-05-22T15:09:43
|
|
Try to contain the failure when we are running without socketpair().
Some win32 systems (mostly those using Kaspersky, it would seem)
prevent us from faking socketpair(). This makes our signal
notification code just not work. Our response since 1.4 has been to
assert. For users who would rather work without signals than not work
at all, this has been a regression from 1.3e.
This patch makes adding signal events fail in this case; there's no
reason to kill the whole process.
svn:r1304
|
|
092baefa
|
2009-01-22T06:26:32
|
|
from trunk: fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov
svn:r1036
|
|
0ede290b
|
2009-01-19T23:42:19
|
|
from trunk: bug fix and potentital race condition from Alexander Drozdov
svn:r1026
|
|
7c7ab279
|
2008-07-25T00:53:17
|
|
from trunk: fix a problem with epoll() and reinit; repoted by Alexander Drozdov
svn:r919
|
|
21c56289
|
2008-07-19T23:41:33
|
|
from trunk: restore signal handlers correctly when we deallocate the signal base
svn:r914
|
|
58bfed9e
|
2008-07-11T16:06:04
|
|
from trunk: assert(a & b) -> assert(a && b)
svn:r904
|
|
0e535d2f
|
2008-07-11T15:59:29
|
|
from trunk: support multiple events listening on the same signal; make signals regular events that go on the same event queue
svn:r902
|
|
c807358f
|
2008-05-09T03:59:57
|
|
r19666@catbus: nickm | 2008-05-08 23:49:18 -0400
Always include winsock2.h before windows.h. Apparently some SDKs need this.
svn:r802
|
|
d58a0a7c
|
2008-05-04T00:52:57
|
|
revert to maintain stability: from trunk: separate signal events from io events
svn:r764
|
|
974a7543
|
2008-05-03T21:40:32
|
|
from trunk: separate signal events from io events
svn:r761
|
|
108ee5f3
|
2007-12-19T04:52:28
|
|
from trunk:
r15171@tombo: nickm | 2007-12-06 12:47:47 -0500
Use GCC attributes (where available) to verify printf type-correctness. Fix some bugs this turned up.
svn:r603
|
|
3368cc79
|
2007-12-18T03:50:04
|
|
from trunk:
r16733@catbus: nickm | 2007-11-26 14:18:25 -0500
Add an --enable-gcc-warnings option (lifted from Tor) to the configure script. When provided, and when we are using GCC, we enable a bunch of extra GCC warnings in the compiler. Also, make the code all build happily with these warnings.
svn:r601
|
|
5ff1fd7a
|
2007-11-25T17:15:39
|
|
r14945@tombo: nickm | 2007-11-25 12:13:05 -0500
Make kqueue pass more unit tests. (Backport)
svn:r545
|
|
40cd2ce3
|
2007-11-13T17:38:39
|
|
from trunk: debug cleanups in signal.c; from Christopher Layne
svn:r528
|
|
6b4342db
|
2007-11-12T02:37:25
|
|
copy trunk to 1.4
svn:r512
|