s3/notifyd: add async send/recv functions
authorRalph Boehme <slow@samba.org>
Fri, 22 Jul 2016 06:29:13 +0000 (08:29 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Jul 2016 03:00:19 +0000 (05:00 +0200)
commit41875c8eab6fe8750c2ddd58df1389f0de88f8ed
tree535b4fd916d7a575d19ab28fbd051ce78a484d83
parent4652a8b911b4c79ca579ab0503bb766548411e2b
s3/notifyd: add async send/recv functions

Previously, without this patch, if notifyd died for whatever reason, it
would be restarted from smbd. However, if its initialization failed and
it exitted again, there would be no child entry in smbd for it and it
wouldn't be attempted to restart it again.

This patch adds async send/recv methods for starting cleanupd that will
reschedule restart attempt every second in case initilisation failed.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12022

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/server.c