From 9599e35e75f3bf5223edd9b0a0854536c23cdef2 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 2 Dec 2009 22:02:14 -0800 Subject: move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package. this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085 --- src/pkg/debug/proc/proc_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/debug/proc/proc_linux.go') diff --git a/src/pkg/debug/proc/proc_linux.go b/src/pkg/debug/proc/proc_linux.go index c17e6855b..b7192580d 100644 --- a/src/pkg/debug/proc/proc_linux.go +++ b/src/pkg/debug/proc/proc_linux.go @@ -9,7 +9,7 @@ package proc import ( "container/vector"; "fmt"; - "io"; + "io/ioutil"; "os"; "runtime"; "strconv"; @@ -1215,7 +1215,7 @@ func (p *process) attachAllThreads() os.Error { if err != nil { // There could have been a race, or // this process could be a zobmie. - statFile, err2 := io.ReadFile(taskPath + "/" + tidStr + "/stat"); + statFile, err2 := ioutil.ReadFile(taskPath + "/" + tidStr + "/stat"); if err2 != nil { switch err2 := err2.(type) { case *os.PathError: -- cgit v1.2.3