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
Hi,
I find a problem, the pid file is left over after program exit . I check the code and find the file name is truncated.
syscall.Unlink(name)
The size of symbolic link file in /proc is always 64, this buf may not longer enough.
if fi, err = os.Lstat(path); err != nil { return } buf := make([]byte, fi.Size()+1) if n, err = syscall.Readlink(path, buf); err == nil { name = string(buf[:n]) }
Thanks!
The text was updated successfully, but these errors were encountered:
Fix removing Lock File with long name on Linux (#16)
5c23bf8
Many thanks for the report!
Sorry, something went wrong.
No branches or pull requests
Hi,
I find a problem, the pid file is left over after program exit . I check the code and find the file name is truncated.
The size of symbolic link file in /proc is always 64, this buf may not longer enough.
Thanks!
The text was updated successfully, but these errors were encountered: