nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
240 stars 25 forks source link

Zombie children #51

Closed Raffy23 closed 2 years ago

Raffy23 commented 2 years ago

When using the nwg-drawer in resident mode (starting the application with the -r flag), the drawer should collect the exit status codes of all children, which is not the case and leads to a lot of zombies in the process tree. An easy fix would be to just insert a cmd.Wait() after https://github.com/nwg-piotr/nwg-drawer/blob/main/tools.go#L586, like shown in the snipped below. But that is certainly not the optimal way to solve this problem.

cmd.Start()
go func() {
    cmd.Wait()
}()