> > while (e->state != SD_EVENT_FINISHED) { > > r = sd_event_run(e, (uint64_t) -1); > > > > But since e->state is changed by another thread it Well..then the game is up because sd-bus does not claim to be thread safe or even aspires to be.. accessing e from different threads will cause unspecified behaviour. In any case this patch is not quite what is needed to make it safe. _______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel