projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9530aa5
)
ooops! we intended to reset the timer in the loop! thanks clang.
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 1 Jan 2015 15:27:18 +0000
(16:27 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 1 Jan 2015 15:27:18 +0000
(16:27 +0100)
citadel/utils/sendcommand.c
patch
|
blob
|
history
diff --git
a/citadel/utils/sendcommand.c
b/citadel/utils/sendcommand.c
index 5ee87fd41d7fc09801761e8772150211607502af..ba28d142da6f076d9fab349fb9041ce7beb2354e 100644
(file)
--- 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);
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);
alarm(watchdog); /* reset the watchdog timer */
if (ErrStr != NULL)
fprintf(stderr, "Error while piping stuff: %s\n", ErrStr);