ooops! we intended to reset the timer in the loop! thanks clang.
[citadel.git] / citadel / utils / sendcommand.c
index 5ee87fd41d7fc09801761e8772150211607502af..ba28d142da6f076d9fab349fb9041ce7beb2354e 100644 (file)
@@ -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);