yoshuawuyts / fd-lock

Advisory cross-platform file locks using file descriptors
Apache License 2.0
76 stars 18 forks source link

Determine cause of failure from errno #9

Closed tecywiz121 closed 3 years ago

tecywiz121 commented 4 years ago

Description

Closes #8 by checking errno (via std::io::Error::last_os_error()) instead of checking the return value of flock directly.

Types of changes