From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

tests/tst-tcp-siocoutq: don't forget to close listening socket

If we keep the listening socket open at the end of the test, we can't
run in the same VM another test which needs the same port (1234).

Signed-off-by: Nadav Har'El <n...@scylladb.com>

---
diff --git a/tests/tst-tcp-siocoutq.cc b/tests/tst-tcp-siocoutq.cc
--- a/tests/tst-tcp-siocoutq.cc
+++ b/tests/tst-tcp-siocoutq.cc
@@ -81,6 +81,7 @@ static int server(void)
      */
     printf("server: sleep for 5 seconds..\n");
     sleep(5);
+    close(listenfd);
     return 0;
 }

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to