micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

unix-ffi: Fixing behavior to avoid zombie threads.

Open klukonin opened this issue 3 months ago • 3 comments

This commit is fixing this issue: https://github.com/micropython/micropython-lib/issues/780 As discussed here https://github.com/orgs/micropython/discussions/13239

Now the pid of child thread will be stored and closed properly. Even with context manager.

klukonin avatar Sep 25 '25 08:09 klukonin

bump up

hodan121 avatar Oct 20 '25 08:10 hodan121

It would be good to add a test for this functionality, that also helps with maintaining stability over time.

Other tests for the ffi module live in the micropython repo under tests/ports/unix

you could take one of the other ffi_ tests as the base, and add example code to it.

Josverl avatar Oct 20 '25 09:10 Josverl

I'll update the PR. Thanks for the ideas, folks =)

klukonin avatar Dec 02 '25 19:12 klukonin