Nick Mathewson
499d0039ad
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
2009-05-22 15:09:43 +00:00
Niels Provos
092baefa4e
from trunk: fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov
...
svn:r1036
2009-01-22 06:26:32 +00:00
Niels Provos
0ede290b3a
from trunk: bug fix and potentital race condition from Alexander Drozdov
...
svn:r1026
2009-01-19 23:42:19 +00:00
Niels Provos
7c7ab27960
from trunk: fix a problem with epoll() and reinit; repoted by Alexander Drozdov
...
svn:r919
2008-07-25 00:53:17 +00:00
Niels Provos
21c562897d
from trunk: restore signal handlers correctly when we deallocate the signal base
...
svn:r914
2008-07-19 23:41:33 +00:00
Niels Provos
58bfed9edb
from trunk: assert(a & b) -> assert(a && b)
...
svn:r904
2008-07-11 16:06:04 +00:00
Niels Provos
0e535d2f32
from trunk: support multiple events listening on the same signal; make signals regular events that go on the same event queue
...
svn:r902
2008-07-11 15:59:29 +00:00
Nick Mathewson
c807358ff5
r19666@catbus: nickm | 2008-05-08 23:49:18 -0400
...
Always include winsock2.h before windows.h. Apparently some SDKs need this.
svn:r802
2008-05-09 03:59:57 +00:00
Niels Provos
d58a0a7c42
revert to maintain stability: from trunk: separate signal events from io events
...
svn:r764
2008-05-04 00:52:57 +00:00
Niels Provos
974a75431d
from trunk: separate signal events from io events
...
svn:r761
2008-05-03 21:40:32 +00:00
Niels Provos
108ee5f3a6
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
2007-12-19 04:52:28 +00:00
Niels Provos
3368cc7922
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
2007-12-18 03:50:04 +00:00
Nick Mathewson
5ff1fd7a99
r14945@tombo: nickm | 2007-11-25 12:13:05 -0500
...
Make kqueue pass more unit tests. (Backport)
svn:r545
2007-11-25 17:15:39 +00:00
Niels Provos
40cd2ce3bb
from trunk: debug cleanups in signal.c; from Christopher Layne
...
svn:r528
2007-11-13 17:38:39 +00:00
Niels Provos
6b4342db67
copy trunk to 1.4
...
svn:r512
2007-11-12 02:37:25 +00:00