Fix systemd monitor initialization
monitor_sd_init needs to get a pointer to struct uterm_sd_mon to be able to initialize it. Previously its contents were never initialized.
Before this fix, there was 100% CPU use after logout because handle_sd_event didn't read pending events.
This broke in 61236ed39762cd03f2ea8c112b2cc9951a6e982d ("Clean up monitors")
CC @michael-oberpriller
Thanks for fixing this, but I will be making a new PR that reverts the broken commits since they did not work as expected.
Ok! I'll leave this open until the other PR is merged.
Are both needed?
Are both needed?
No, either of them will fix that specific issue.
Superseded by #105