selectpollkqueue01: Invalidate file descriptor

This is not a functional change or a fix.
This commit is contained in:
Sebastian Huber 2018-07-26 13:52:43 +02:00
parent 6fb003f588
commit 3df89c0ef9

View File

@ -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);
}