diff options
author | Russ Cox <rsc@golang.org> | 2009-03-06 17:51:31 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-03-06 17:51:31 -0800 |
commit | e6f5411bf6dd713f5e038efbd424490d989309e8 (patch) | |
tree | af8e99c7a527413c5d9bfd438924e3a26f123a62 /src/lib/syscall/socket_linux.go | |
parent | cbdd6270b79791c65ad0f4b5aafd33e139d3ecb9 (diff) | |
download | golang-e6f5411bf6dd713f5e038efbd424490d989309e8.tar.gz |
document Conn interface better, in preparation
for per-method interface documentation
by mkdoc.pl.
implement timeouts on network reads
and use them in dns client.
also added locks on i/o to ensure writes
are not interlaced.
R=r
DELTA=340 (272 added, 25 deleted, 43 changed)
OCL=25799
CL=25874
Diffstat (limited to 'src/lib/syscall/socket_linux.go')
-rw-r--r-- | src/lib/syscall/socket_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/syscall/socket_linux.go b/src/lib/syscall/socket_linux.go index a06157784..39b9aa60f 100644 --- a/src/lib/syscall/socket_linux.go +++ b/src/lib/syscall/socket_linux.go @@ -80,7 +80,7 @@ func Setsockopt_tv(fd, level, opt, nsec int64) int64 { func Setsockopt_linger(fd, level, opt int64, sec int) int64 { var l Linger; - if sec != 0 { + if sec >= 0 { l.Yes = 1; l.Sec = int32(sec) } else { |