mirror of
https://github.com/golang/go
synced 2024-11-06 06:26:13 -07:00
221bc23af6
The number of open file descriptors reported by lsof is unreliable because it depends on whether the parent process (the test) closed the file descriptors it passed into the child process (lsof) before lsof runs. Reading /proc/self/fd directly on Linux appears to be much more reliable and still detects any file descriptor leaks originating from attempting to run an executable that cannot be found (issue #5071). If /proc/self/fd is not available (e.g. on Darwin) then we fall back to lsof and tolerate small differences in open file descriptor counts. Fixes #19243. Change-Id: I052b0c129e609010f1083e43a9911cba154117bf Reviewed-on: https://go-review.googlesource.com/37343 Run-TryBot: Michael Munday <munday@ca.ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> |
||
---|---|---|
.. | ||
exec | ||
signal | ||
user | ||
dir_plan9.go | ||
dir_unix.go | ||
dir_windows.go | ||
dir.go | ||
env_test.go | ||
env_unix_test.go | ||
env.go | ||
error_plan9.go | ||
error_posix.go | ||
error_test.go | ||
error_unix_test.go | ||
error_unix.go | ||
error_windows_test.go | ||
error_windows.go | ||
error.go | ||
example_test.go | ||
exec_plan9.go | ||
exec_posix.go | ||
exec_unix.go | ||
exec_windows.go | ||
exec.go | ||
executable_darwin.go | ||
executable_freebsd.go | ||
executable_plan9.go | ||
executable_procfs.go | ||
executable_solaris.go | ||
executable_test.go | ||
executable_windows.go | ||
executable.go | ||
export_test.go | ||
export_windows_test.go | ||
file_plan9.go | ||
file_posix.go | ||
file_unix.go | ||
file_windows.go | ||
file.go | ||
getwd_darwin.go | ||
getwd.go | ||
os_test.go | ||
os_unix_test.go | ||
os_windows_test.go | ||
path_plan9.go | ||
path_test.go | ||
path_unix.go | ||
path_windows_test.go | ||
path_windows.go | ||
path.go | ||
pipe_bsd.go | ||
pipe_linux.go | ||
pipe_test.go | ||
proc.go | ||
stat_darwin.go | ||
stat_dragonfly.go | ||
stat_freebsd.go | ||
stat_linux.go | ||
stat_nacl.go | ||
stat_netbsd.go | ||
stat_openbsd.go | ||
stat_plan9.go | ||
stat_solaris.go | ||
stat_unix.go | ||
stat_windows.go | ||
sticky_bsd.go | ||
sticky_notbsd.go | ||
str.go | ||
sys_bsd.go | ||
sys_darwin.go | ||
sys_freebsd.go | ||
sys_linux.go | ||
sys_nacl.go | ||
sys_plan9.go | ||
sys_solaris.go | ||
sys_unix.go | ||
sys_windows.go | ||
sys.go | ||
types_plan9.go | ||
types_unix.go | ||
types_windows.go | ||
types.go | ||
wait_unimp.go | ||
wait_wait6.go | ||
wait_waitid.go |