From bd2e6c30e6fa7e2f685a2fd00667f9470fad7d47 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 28 Jul 2020 14:47:59 +0200 Subject: [PATCH] cpu/native/async_read: close fds on cleanup This was lost when moving to poll(). We need to close the fds on cleanup. fixes #14636 --- cpu/native/async_read.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpu/native/async_read.c b/cpu/native/async_read.c index eeb0ba9435..1627c397d6 100644 --- a/cpu/native/async_read.c +++ b/cpu/native/async_read.c @@ -52,6 +52,7 @@ void native_async_read_cleanup(void) { unregister_interrupt(SIGIO); for (int i = 0; i < _next_index; i++) { + real_close(_fds[i].fd); if (pollers[i].child_pid) { kill(pollers[i].child_pid, SIGKILL); }