From: Wilfried Goesgens Date: Thu, 1 Jan 2015 15:27:18 +0000 (+0100) Subject: ooops! we intended to reset the timer in the loop! thanks clang. X-Git-Tag: v9.01~56 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=23a509b126827987935a6f1cfbdfa9c35bab918f ooops! we intended to reset the timer in the loop! thanks clang. --- 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);