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)
committerAndrew Tridgell <tridge@samba.org>
Fri, 28 Aug 2009 04:09:09 +0000 (14:09 +1000)
commitbe4ac227842530d484659f2db683453366326d8b
treeb25bff85d32a796032e949e0f91965925df557bd
parent6abb637e3e0d23635fdbbb91c163731b325d696d
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>
lib/tevent/tevent_internal.h
lib/tevent/tevent_signal.c