summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortg(x) <*@tg-x.net>2016-11-25 22:27:18 +0100
committertg(x) <*@tg-x.net>2016-11-25 22:27:18 +0100
commit82e765caeb53a1de54676738169dab98ca76c47e (patch)
treede22cf6af972f4d8f329356ef9e738cdd00f9345
parentb618b2ad7f2fda8bd41560157fb33cc40e71ab42 (diff)
service_new: ready_confirm_fd
-rw-r--r--src/util/service_new.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/service_new.c b/src/util/service_new.c
index 8433c42bf..a893d287b 100644
--- a/src/util/service_new.c
+++ b/src/util/service_new.c
@@ -390,6 +390,14 @@ service_main (void *cls)
GNUNET_SCHEDULER_add_shutdown (&service_shutdown,
sh);
GNUNET_SERVICE_resume (sh);
+
+ if (-1 != sh->ready_confirm_fd)
+ {
+ GNUNET_break (1 == WRITE (sh->ready_confirm_fd, ".", 1));
+ GNUNET_break (0 == CLOSE (sh->ready_confirm_fd));
+ sh->ready_confirm_fd = -1;
+ }
+
if (NULL != sh->service_init_cb)
sh->service_init_cb (sh->cb_cls,
sh->cfg,