lib/tevent: handle tevent_common_add_signal on different event contexts.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Aug 2009 02:38:47 +0000 (12:08 +0930)
committerKarolin Seeger <kseeger@samba.org>
Wed, 9 Sep 2009 10:27:17 +0000 (12:27 +0200)
commit792ab5c34a20bd2b292b642dc96cae62e5ad1ce0
treee6d45fef76159357388d557c48240b0a812482f1
parentbd28ae54a635667096e4a0d1010a1c3cce59712f
lib/tevent: handle tevent_common_add_signal on different event contexts.

I don't know if this is a problem in real life.

The code assumes there's only one tevent_context; all signals will notify
the first event context.  That's counter-intuitive if you ever use more
than one, and there's nothing else in this code which prevents it AFAICT.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit be4ac227842530d484659f2db683453366326d8b)
lib/tevent/tevent_internal.h
lib/tevent/tevent_signal.c