You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/portlist
Avery Pennarun 806de4ac94 portlist: fix "readdirent: no such file or directory" errors on Linux.
This could happen when a process disappeared while we were reading its
file descriptor list.

I was able to replicate the problem by running this in another
terminal:

    while :; do for i in $(seq 10); do
      /bin/true & done >&/dev/null; wait >&/dev/null;
    done

And then running the portlist tests thousands of times.

Fixes #339.

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
4 years ago
..
netstat.go portlist: move code around to avoid unused function warnings. 4 years ago
netstat_exec.go portlist: move code around to avoid unused function warnings. 4 years ago
netstat_test.go portlist: ignore ports bound to localhost 4 years ago
poller.go portlist: fail earlier, more nicely on iOS 4 years ago
portlist.go Fix macOS build 4 years ago
portlist_ios.go portlist: don't depend on tempfork/osexec on iOS, saves 90KB 4 years ago
portlist_linux.go portlist: fix "readdirent: no such file or directory" errors on Linux. 4 years ago
portlist_macos.go portlist: reduce log spam/scariness for portlist in mac sandbox 4 years ago
portlist_other.go portlist: document, clean up, fix an open fd spike, optimize a bit 4 years ago
portlist_test.go portlist: fix "readdirent: no such file or directory" errors on Linux. 4 years ago
portlist_windows.go portlist: move code around to avoid unused function warnings. 4 years ago