1
0
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:
Martine Lenders 2020-07-28 18:39:41 +02:00 committed by GitHub
commit ab88a96a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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