summaryrefslogtreecommitdiff
path: root/src/pkg/debug/proc/proc_linux.go
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2011-07-08 09:16:22 +0200
committerOndřej Surý <ondrej@sury.org>2011-07-18 11:33:01 +0200
commit2db5d1b2fdb0bb1c8afe6614314c1336888bdf4c (patch)
treee59b124753eb1eec194ec682a7815c401388f10d /src/pkg/debug/proc/proc_linux.go
parent3660a6e3d67838f34c87d7450bd600fc1d6d70c7 (diff)
downloadgolang-2db5d1b2fdb0bb1c8afe6614314c1336888bdf4c.tar.gz
Imported Upstream version 2011.07.07
Diffstat (limited to 'src/pkg/debug/proc/proc_linux.go')
-rw-r--r--src/pkg/debug/proc/proc_linux.go2
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 5831b0e97..7ec797114 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)