Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/disk/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func (sf *StateFile) StartWriter(states chan NewState, done chan struct{}) {
if sf.lockFd != nil {
// Duplicate the new file descriptor over the old one.
// This will unlock the old inode.
if err := syscall.Dup2(newFd, *sf.lockFd); err != nil {
if err := syscall.Dup3(newFd, *sf.lockFd, 0); err != nil {
panic(err)
}
syscall.Close(newFd)
Expand Down