summaryrefslogtreecommitdiff
path: root/lib/tevent/tevent_internal.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-08-28 12:08:47 +0930
committerAndrew Tridgell <tridge@samba.org>2009-08-28 14:09:09 +1000
commitbe4ac227842530d484659f2db683453366326d8b (patch)
treeb25bff85d32a796032e949e0f91965925df557bd /lib/tevent/tevent_internal.h
parent6abb637e3e0d23635fdbbb91c163731b325d696d (diff)
downloadsamba-be4ac227842530d484659f2db683453366326d8b.tar.gz
samba-be4ac227842530d484659f2db683453366326d8b.tar.bz2
samba-be4ac227842530d484659f2db683453366326d8b.zip
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>
Diffstat (limited to 'lib/tevent/tevent_internal.h')
-rw-r--r--lib/tevent/tevent_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tevent/tevent_internal.h b/lib/tevent/tevent_internal.h
index 513ca1c732..4e3b7b5718 100644
--- a/lib/tevent/tevent_internal.h
+++ b/lib/tevent/tevent_internal.h
@@ -240,6 +240,7 @@ struct tevent_context {
/* pipe hack used with signal handlers */
struct tevent_fd *pipe_fde;
+ int pipe_fds[2];
/* debugging operations */
struct tevent_debug_ops debug_ops;