]> Cypherpunks repositories - gostls13.git/commit
cmd/link: actually close the output file
authorCherry Zhang <cherryyz@google.com>
Wed, 27 May 2020 00:02:43 +0000 (20:02 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 27 May 2020 15:26:40 +0000 (15:26 +0000)
commit902d8de79ed9bb6013cdb1952db1538bc1d10677
tree04c7dd8533b1e3c2ec5faa63558decfc8247fcf8
parentc0e8e405c02388fb8e7d3bea092f5aa8b19b2ad9
cmd/link: actually close the output file

When the output file is mmap'd, OutBuf.Close currently munmap the
file but doesn't actually close the file descriptor. This CL
makes it actually close the FD.

Change-Id: I053c5592ae95497228c50ce6a267b3b48f0af6d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/235417
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/outbuf.go