jD91mZM2 / xidlehook

GitLab: https://gitlab.com/jD91mZM2/xidlehook
MIT License
387 stars 33 forks source link

xrandr defunct child process #22

Closed tmpm697 closed 5 years ago

tmpm697 commented 5 years ago

I saw several xrandr defunct child process of xidlehook but idk how to trace this problem, is there anything I can help or know why xidlehook spawn some dead xrandr processes?

jD91mZM2 commented 5 years ago

This is probably because I never wait for processes to finish, but rather spawn them async (see src/main.rs#L345-L353). I need to hook the processes up to mio so I can get events whenever one of them dies. I'll do this once I get time!

jD91mZM2 commented 5 years ago

Should be fixed in commit 1315fa9ce883efe2d8868f74b7bb3d47c97a3ca3. Let me know if this works for you and I'll make a patch release

tmpm697 commented 5 years ago

I think it work well now. thanks.