]> Cypherpunks repositories - gostls13.git/commit
os/exec: use "pfiles" for fd debugging on illumos
authorJoshua M. Clulow <josh@sysmgr.org>
Fri, 6 Nov 2020 21:11:58 +0000 (13:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 7 Nov 2020 14:23:20 +0000 (14:23 +0000)
commitbb9a96d03a35ab56f3e1a3e6a6c835f7f2120d54
treed66ded8af22823cdfc036d501ae15aa50386d645
parenta6755fc0debc3005e8bd730521ecc8dba61a24e8
os/exec: use "pfiles" for fd debugging on illumos

On illumos (and Solaris) systems, the native "pfiles" tool provides the
best information about open file descriptors for a process:

    https://illumos.org/man/1/pfiles

Use that instead of "lsof" when debugging file descriptor leaks.

Updates #42431.

Change-Id: If1250c4e6c9e8adbd076495a09fb1ce63abcc68b
Reviewed-on: https://go-review.googlesource.com/c/go/+/268019
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
src/os/exec/read3.go