Open karliss opened 4 years ago
Currently, doc
kills and detaches from the child processes to end the debug session. Avoiding zombies isn't very straightforward if we are going to add a future configuration to let the child live after detach or if the child catches SIGKILL. I would like to see this solved but I am not sure if this is critical seeing that the zombies are cleaned up once Cutter/r2 is closed.
A possible solution would be to wait for SIGCHLD with a timeout on detach.
AFAIK gdb solves this issue by maintaining a list of child prcesses but that won't work here.
Environment information
Describe the bug
Starting and stopping debugger causes Cutter to accumulate zombie processes.
To Reproduce
Steps to reproduce the behavior: 1.Open an ELF executable on Linux
Expected behavior Debugger correctly stops the process and performs required cleanup.