Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

procstat_stop: new api for safe shutdown #30

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

anton-lb
Copy link
Contributor

New procstat_stop() function invokes fuse_session_exit(session);
This triggers fuse_session_loop() to exits.
The caller then can join the thread running fuse_session_loop().
After this it is safe to call procstat_destroy().

Note: procstat_destroy() still calls fuse_session_exit().
It is safe to do so after procstat_stop(),
and enables compatibility with users that do not call procstat_stop().

Issue: LBM1-12042

Signed-off-by: Anton Eidelman [email protected]

New procstat_stop() function invokes fuse_session_exit(session);
This triggers fuse_session_loop() to exits.
The caller then can join the thread running fuse_session_loop().
After this it is safe to call procstat_destroy().

Note: procstat_destroy() still calls fuse_session_exit().
It is safe to do so after procstat_stop(),
and enables compatibility with users that do not call procstat_stop().

Issue: LBM1-12042

Signed-off-by: Anton Eidelman <[email protected]>
@anton-lb anton-lb merged commit 4a510ea into master Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant