rust-subprocess icon indicating copy to clipboard operation
rust-subprocess copied to clipboard

Exec::cmd creates zombie processes that are never cleaned up

Open scd31 opened this issue 2 years ago • 1 comments

I found that every time I call Exec::cmd it creates zombie/defunct process that lasts for the lifetime of the program. This can cause problems when spawning many processes.

The workaround was to use Popen instead. It doesn't have the same issue - no defunct processes are created.

scd31 avatar Jul 09 '23 19:07 scd31

Can you please provide a minimal example of a program that leaves a zombie process?

hniksic avatar Jul 09 '23 20:07 hniksic