aboutsummaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
commit95f9076a2139f5fb042b944a0658b6cda2fa35db (patch)
treeb0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/template
parent7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff)
downloadgnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz
gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/template')
-rw-r--r--src/template/gnunet-service-template.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/template/gnunet-service-template.c b/src/template/gnunet-service-template.c
index 556d44bd8..6ff63c073 100644
--- a/src/template/gnunet-service-template.c
+++ b/src/template/gnunet-service-template.c
@@ -47,7 +47,8 @@ cleanup_task (void *cls)
47 * @param cfg configuration to use 47 * @param cfg configuration to use
48 */ 48 */
49static void 49static void
50run (void *cls, struct GNUNET_SERVER_Handle *server, 50run (void *cls,
51 struct GNUNET_SERVER_Handle *server,
51 const struct GNUNET_CONFIGURATION_Handle *cfg) 52 const struct GNUNET_CONFIGURATION_Handle *cfg)
52{ 53{
53 static const struct GNUNET_SERVER_MessageHandler handlers[] = { 54 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
@@ -56,8 +57,8 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
56 }; 57 };
57 /* FIXME: do setup here */ 58 /* FIXME: do setup here */
58 GNUNET_SERVER_add_handlers (server, handlers); 59 GNUNET_SERVER_add_handlers (server, handlers);
59 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, 60 GNUNET_SCHEDULER_add_shutdown (&cleanup_task,
60 NULL); 61 NULL);
61} 62}
62 63
63 64