From: Christian Grothoff Date: Sun, 29 Jan 2017 18:44:30 +0000 (+0100) Subject: fix task cleanup on CTRL-D X-Git-Tag: taler-0.2.1~251 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9f4bc1121c34560a72a09db49e5b163a64eb5b06;p=oweals%2Fgnunet.git fix task cleanup on CTRL-D --- diff --git a/src/cadet/gnunet-cadet.c b/src/cadet/gnunet-cadet.c index 80010ec54..043318ff3 100644 --- a/src/cadet/gnunet-cadet.c +++ b/src/cadet/gnunet-cadet.c @@ -313,6 +313,7 @@ read_stdio (void *cls) { static char buf[60000]; + rd_task = NULL; data_size = read (0, buf, 60000); GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "stdio read %u bytes\n", @@ -464,6 +465,7 @@ channel_incoming (void *cls, static void send_echo (void *cls) { + echo_task = NULL; if (NULL == ch) return; GNUNET_assert (NULL == th); @@ -540,9 +542,9 @@ create_channel (void *cls) */ static int data_callback (void *cls, - struct GNUNET_CADET_Channel *channel, - void **channel_ctx, - const struct GNUNET_MessageHeader *message) + struct GNUNET_CADET_Channel *channel, + void **channel_ctx, + const struct GNUNET_MessageHeader *message) { uint16_t len; ssize_t done;