commit 37b4ccba4a069ecbe9ee46da8b91850668400ccc from: Stefan Sperling date: Thu Nov 21 16:41:32 2024 UTC connect the notifier only if the session process is writing to the repo fixes "gotd: unexpected imsg 40" in logs commit - 32fdf3fddec1fabda12ee185d866d1db180cfe7d commit + 37b4ccba4a069ecbe9ee46da8b91850668400ccc blob - 8b3f29ef924d653a8a2d06521c42f3ce34718ea4 blob + 9555322131694aae331af8a3a6bbdc8250c1d531 --- gotd/gotd.c +++ gotd/gotd.c @@ -1569,11 +1569,13 @@ gotd_dispatch_repo_child(int fd, short event, void *ar break; case GOTD_IMSG_REPO_CHILD_READY: err = connect_session(client); - if (err) - break; - err = connect_notifier_and_session(client); if (err) break; + if (client_is_writing(client)) { + err = connect_notifier_and_session(client); + if (err) + break; + } err = connect_repo_child(client, proc); break; default: