mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 01:42:56 +08:00
selectpollkqueue01: Invalidate file descriptor
This is not a functional change or a fix.
This commit is contained in:
@@ -364,6 +364,8 @@ test_select_connect(test_context *ctx)
|
|||||||
puts("test select connect");
|
puts("test select connect");
|
||||||
|
|
||||||
if (afd >= 0) {
|
if (afd >= 0) {
|
||||||
|
ctx->afd = -1;
|
||||||
|
|
||||||
rv = close(afd);
|
rv = close(afd);
|
||||||
assert(rv == 0);
|
assert(rv == 0);
|
||||||
}
|
}
|
||||||
@@ -566,6 +568,8 @@ test_poll_connect(test_context *ctx)
|
|||||||
puts("test poll connect");
|
puts("test poll connect");
|
||||||
|
|
||||||
if (afd >= 0) {
|
if (afd >= 0) {
|
||||||
|
ctx->afd = -1;
|
||||||
|
|
||||||
rv = close(afd);
|
rv = close(afd);
|
||||||
assert(rv == 0);
|
assert(rv == 0);
|
||||||
}
|
}
|
||||||
@@ -756,6 +760,8 @@ test_kqueue_connect(test_context *ctx)
|
|||||||
puts("test kqueue connect");
|
puts("test kqueue connect");
|
||||||
|
|
||||||
if (afd >= 0) {
|
if (afd >= 0) {
|
||||||
|
ctx->afd = -1;
|
||||||
|
|
||||||
rv = close(afd);
|
rv = close(afd);
|
||||||
assert(rv == 0);
|
assert(rv == 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user