We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
flock
While this issue was discovered when trying to debug #91, this is not related to that issue.
If flock is run on a file in an NFS mount, the program hangs. (Unlike #91, there's a reproducer)
#include <fcntl.h> #include <sys/mman.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <dlfcn.h> int main(int argc, char** argv){ int fd=openat(AT_FDCWD, "test_mount/tmp/gopls-diff-stats-2599980011", O_RDWR); printf("%s\n",strerror(errno)); flock(fd,LOCK_EX); }
The text was updated successfully, but these errors were encountered:
Using nolock solved this.
nolock
Sorry, something went wrong.
nolock as a mount option, you mean?
Yes.
No branches or pull requests
While this issue was discovered when trying to debug #91, this is not related to that issue.
If flock is run on a file in an NFS mount, the program hangs.
(Unlike #91, there's a reproducer)
The text was updated successfully, but these errors were encountered: