Commit ce748ca6 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Drop MyPID.

parent 830461e3
...@@ -118,11 +118,6 @@ func CheckSuccess(e os.Error) { ...@@ -118,11 +118,6 @@ func CheckSuccess(e os.Error) {
} }
} }
func MyPID() string {
v, _ := os.Readlink("/proc/self")
return v
}
// Thanks to Andrew Gerrand for this hack. // Thanks to Andrew Gerrand for this hack.
func asSlice(ptr unsafe.Pointer, byteCount uintptr) []byte { func asSlice(ptr unsafe.Pointer, byteCount uintptr) []byte {
h := &reflect.SliceHeader{uintptr(ptr), int(byteCount), int(byteCount)} h := &reflect.SliceHeader{uintptr(ptr), int(byteCount), int(byteCount)}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment