Skip to content

Conversation

blp
Copy link

@blp blp commented Aug 22, 2025

Fixes: #2663

What does this PR do

Marks nix::unstd::daemon unsafe and documents why.

Checklist:

  • I have read CONTRIBUTING.md
  • I have written necessary tests and rustdoc comments
  • A change log has been added if this PR modifies nix's API

@blp blp marked this pull request as ready for review August 22, 2025 21:24
Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you aware of any safety issues for single-threaded processes? I'm not. So i suggest we advise the user in the documentation that this function should only be used by single threaded processes.

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.

nix::unistd::daemon will kill all other threads
2 participants