summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man7/unix.76
1 files changed, 5 insertions, 1 deletions
diff --git a/man7/unix.7 b/man7/unix.7
index 74db95fcd..869a3d543 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -1064,13 +1064,17 @@ main(void)
\&
if (!strncmp(buffer, "DOWN", sizeof(buffer))) {
down_flag = 1;
- break;
+ continue;
}
\&
if (!strncmp(buffer, "END", sizeof(buffer))) {
break;
}
\&
+ if (down_flag) {
+ continue;
+ }
+\&
/* Add received summand. */
\&
result += atoi(buffer);