mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #14638 from benpicco/cpu/native/async_read-cleanup
cpu/native/async_read: close fds on cleanup
This commit is contained in:
commit
ab88a96a4a
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user