[rtems-libbsd commit] selectpollkqueue01: Invalidate file descriptor
Sebastian Huber
sebh at rtems.org
Thu Jul 26 12:17:16 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 3df89c0ef9ab8b810ecfc1c0e9d5f80b99abefbd
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=3df89c0ef9ab8b810ecfc1c0e9d5f80b99abefbd
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Jul 26 13:52:43 2018 +0200
selectpollkqueue01: Invalidate file descriptor
This is not a functional change or a fix.
---
testsuite/selectpollkqueue01/test_main.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/testsuite/selectpollkqueue01/test_main.c b/testsuite/selectpollkqueue01/test_main.c
index 6473c6c..fc05643 100755
--- a/testsuite/selectpollkqueue01/test_main.c
+++ b/testsuite/selectpollkqueue01/test_main.c
@@ -364,6 +364,8 @@ test_select_connect(test_context *ctx)
puts("test select connect");
if (afd >= 0) {
+ ctx->afd = -1;
+
rv = close(afd);
assert(rv == 0);
}
@@ -566,6 +568,8 @@ test_poll_connect(test_context *ctx)
puts("test poll connect");
if (afd >= 0) {
+ ctx->afd = -1;
+
rv = close(afd);
assert(rv == 0);
}
@@ -756,6 +760,8 @@ test_kqueue_connect(test_context *ctx)
puts("test kqueue connect");
if (afd >= 0) {
+ ctx->afd = -1;
+
rv = close(afd);
assert(rv == 0);
}
More information about the vc
mailing list