]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/lockedfile: fix filelock.Unlock() called twice
authorClément Chigot <clement.chigot@atos.net>
Wed, 5 Dec 2018 13:15:37 +0000 (14:15 +0100)
committerBryan C. Mills <bcmills@google.com>
Wed, 5 Dec 2018 16:09:05 +0000 (16:09 +0000)
commitaac285c2df754f61b49baf2a35bffae0ae5bf95b
treefa0989b1483a51786135af687395e2bc5cb6f920
parent5e1727892bf36076ee45c417b56bba32801ffbd7
cmd/go/internal/lockedfile: fix filelock.Unlock() called twice

filelock.Unlock() was called twice for fcntl implementation if an error
occurs during file.{,R}Lock(): once in the error handler, once in
filelock.lock().

Change-Id: I5ad84e8ef6b5e51d79e0a7a0c51f465276cd0c57
Reviewed-on: https://go-review.googlesource.com/c/152717
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/lockedfile/lockedfile_filelock.go