]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man7/unix.7
unix.7: EXAMPLES: server.c: End connection with END
[thirdparty/man-pages.git] / man7 / unix.7
index 74db95fcdb569019b913cc4c6cbd7181250853b9..869a3d543e62232820b8424e1893ec473d2887fa 100644 (file)
@@ -1064,12 +1064,16 @@ 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. */
 \&