diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages_local.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index b398870e1f..e20024ae59 100644 --- a/source3/lib/messages_local.c +++ b/source3/lib/messages_local.c @@ -77,6 +77,16 @@ static void messaging_tdb_signal_handler(struct tevent_context *ev_ctx, message_dispatch(ctx->msg_ctx); } +void *messaging_tdb_event(TALLOC_CTX *mem_ctx, struct messaging_context *msg, + struct tevent_context *ev) +{ + struct messaging_tdb_context *msg_tdb = talloc_get_type_abort( + msg->local->private_data, struct messaging_tdb_context); + + return tevent_add_signal(ev, mem_ctx, SIGUSR1, 0, + messaging_tdb_signal_handler, msg_tdb); +} + /**************************************************************************** Initialise the messaging functions. ****************************************************************************/ |