diff options
| author | Filippo Valsorda <filippo@golang.org> | 2018-03-30 17:00:39 -0400 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-03-30 21:37:21 +0000 |
| commit | befd5c44cc5e970dd4b021229d6162d8b56f111b (patch) | |
| tree | a498d43dde7a3e38d43508293269c9e4b0e9a155 /src/syscall | |
| parent | a9ba3e30acf004a57fbc1288d5cea6bae74d06e8 (diff) | |
| download | go-befd5c44cc5e970dd4b021229d6162d8b56f111b.tar.xz | |
syscall: remove double Unlock from Dup2 on nacl
Fixes #24610
Change-Id: I76dee97db7cd77fe03e4a224f679a5efd061a2b5
Reviewed-on: https://go-review.googlesource.com/103775
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall')
| -rw-r--r-- | src/syscall/fd_nacl.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/syscall/fd_nacl.go b/src/syscall/fd_nacl.go index e559793c8b..b31aa58c49 100644 --- a/src/syscall/fd_nacl.go +++ b/src/syscall/fd_nacl.go @@ -121,7 +121,6 @@ func Dup(fd int) (int, error) { func Dup2(fd, newfd int) error { files.Lock() - defer files.Unlock() if fd < 0 || fd >= len(files.tab) || files.tab[fd] == nil || newfd < 0 || newfd >= len(files.tab)+100 { files.Unlock() return EBADF |
