diff options
author | Tom Gundersen <teg@jklm.no> | 2015-06-04 16:54:45 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-06-04 19:04:26 +0200 |
commit | f68067348f58cd08d8f4f5325ce22f9a9d2c2140 (patch) | |
tree | 3a1191322841a74925837cb1e8aaea132cf9278b /test/path-exists.service | |
parent | 1cf548925de9c6d12200f491963b977c9db538e3 (diff) |
sd-event: don't touch fd's accross forks
We protect most of the API from use accross forks, but we still allow both
sd_event and sd_event_source objects to be unref'ed. This would cause
problems as it would unregister sources from the underlying eventfd, hence
also affecting the original instance in the parent process.
This fixes the issue by not touching the fds on unref when done accross a fork,
but still free the memory.
This fixes a regression introduced by
"udevd: move main-loop to sd-event": 693d371d30fee
where the worker processes were disabling the inotify event source in the
main daemon.
Diffstat (limited to 'test/path-exists.service')
0 files changed, 0 insertions, 0 deletions