diff options
| author | Rob Pike <r@golang.org> | 2011-06-28 09:43:14 +1000 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2011-06-28 09:43:14 +1000 |
| commit | ebb1566a46f2f5b2c06ef0f7ad5f7084dce0aed9 (patch) | |
| tree | 62c412f896baa504ae4a26d452f8cac6ce1aeed8 /src/pkg/debug/proc/proc_linux.go | |
| parent | 82a8afdf1411bbe5b08b09d1e94a8d1c4fb5635c (diff) | |
| download | go-ebb1566a46f2f5b2c06ef0f7ad5f7084dce0aed9.tar.xz | |
strings.Split: make the default to split all.
Change the signature of Split to have no count,
assuming a full split, and rename the existing
Split with a count to SplitN.
Do the same to package bytes.
Add a gofix module.
R=adg, dsymonds, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/4661051
Diffstat (limited to 'src/pkg/debug/proc/proc_linux.go')
| -rw-r--r-- | src/pkg/debug/proc/proc_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/debug/proc/proc_linux.go b/src/pkg/debug/proc/proc_linux.go index 5831b0e979..7ec797114c 100644 --- a/src/pkg/debug/proc/proc_linux.go +++ b/src/pkg/debug/proc/proc_linux.go @@ -1229,7 +1229,7 @@ func (p *process) attachAllThreads() os.Error { return err } - statParts := strings.Split(string(statFile), " ", 4) + statParts := strings.SplitN(string(statFile), " ", 4) if len(statParts) > 2 && statParts[2] == "Z" { // tid is a zombie p.logTrace("thread %d is a zombie", tid) |
