diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-05-02 15:44:55 +0200 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-05-02 15:44:55 +0200 |
| commit | 62e7d56f2c8706e5b88221cedac6769863ddf3b0 (patch) | |
| tree | a48f46e27c9136335f8ab4db2da790556816554e /src/pkg/net/unixsock_posix.go | |
| parent | 37370279cdb95edc1ebb298a957147c907907988 (diff) | |
| parent | 0003ee229fd33ff46cb5f2fe1e35f5c0284debc4 (diff) | |
| download | golang-62e7d56f2c8706e5b88221cedac6769863ddf3b0.tar.gz | |
Merge commit 'upstream/1.0.1' into debian-sid
Diffstat (limited to 'src/pkg/net/unixsock_posix.go')
| -rw-r--r-- | src/pkg/net/unixsock_posix.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pkg/net/unixsock_posix.go b/src/pkg/net/unixsock_posix.go index 37a2b1e09..57d784c71 100644 --- a/src/pkg/net/unixsock_posix.go +++ b/src/pkg/net/unixsock_posix.go @@ -141,9 +141,7 @@ func (c *UnixConn) Close() error { if !c.ok() { return syscall.EINVAL } - err := c.fd.Close() - c.fd = nil - return err + return c.fd.Close() } // LocalAddr returns the local network address, a *UnixAddr. @@ -406,7 +404,7 @@ func (l *UnixListener) SetDeadline(t time.Time) (err error) { // File returns a copy of the underlying os.File, set to blocking mode. // It is the caller's responsibility to close f when finished. -// Closing c does not affect f, and closing f does not affect c. +// Closing l does not affect f, and closing f does not affect l. func (l *UnixListener) File() (f *os.File, err error) { return l.fd.dup() } // ListenUnixgram listens for incoming Unix datagram packets addressed to the |
