Skip to content

Add docs to the time and fcntl modules #2289

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

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

asomers
Copy link
Member

@asomers asomers commented Jan 14, 2024

Also, deprecate FlockArg::UnlockNonblock. That combination of flags doesn't make sense. And indeed, reviewing the kernel source code shows that the kernel will ignore LOCK_NB when LOCK_UN is set.

Also, deprecate FlockArg::UnlockNonblock.  That combination of flags
doesn't make sense.  And indeed, reviewing the kernel source code shows
that the kernel will ignore LOCK_NB when LOCK_UN is set.
LockExclusive,
/// Unlock file
Unlock,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can also deprecate the Unlock variant given that this FlockArg type is only used with the lock interface: Flock::lock()

@SteveLauC SteveLauC added this pull request to the merge queue Jan 22, 2024
Merged via the queue into nix-rust:master with commit d9e1146 Jan 22, 2024
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.

2 participants