From 23a509b126827987935a6f1cfbdfa9c35bab918f Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 1 Jan 2015 16:27:18 +0100 Subject: [PATCH] ooops! we intended to reset the timer in the loop! thanks clang. --- citadel/utils/sendcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/utils/sendcommand.c b/citadel/utils/sendcommand.c index 5ee87fd41..ba28d142d 100644 --- a/citadel/utils/sendcommand.c +++ b/citadel/utils/sendcommand.c @@ -212,7 +212,7 @@ int main(int argc, char **argv) IOB.fd = serv_sock; FDIOBufferInit(&FDIO, &IOB, fileno(stdin), -1); - while (FileSendChunked(&FDIO, &ErrStr) >= 0); + while (FileSendChunked(&FDIO, &ErrStr) >= 0) alarm(watchdog); /* reset the watchdog timer */ if (ErrStr != NULL) fprintf(stderr, "Error while piping stuff: %s\n", ErrStr); -- 2.30.2