bottom icon indicating copy to clipboard operation
bottom copied to clipboard

[Bug]: "kinfo_getfile(): No such process" should be silenced

Open dmilith opened this issue 3 years ago • 0 comments

Checklist

Describe the issue

One screenshot instead of 100 words: https://s.verknowsys.com/47a2bdcc2adb3e2aa29030340b65eec3.png

The problem is related to the sysinfo crate, the process list fetching routine to be precise. When one of probed process is short lived/ killed/ interrupted or finished when kinfo_getfile() reads info from the process file descriptor.

Details about the syscall: https://www.freebsd.org/cgi/man.cgi?apropos=0&sektion=3&query=kinfo_getfile&manpath=FreeBSD+7.0-current&format=html

A possible solution may be to take control over default error out (/dev/stderr on UNIX*-like) while Bottom is running.

What operating system are you using?

Other (please specify in description)

What architecture are you using?

Other (please specify in description)

What terminal(s) are you running bottom on?

Wezterm

What version of bottom are you running?

master (0.6.x)

How did you install bottom?

from git

How can we reproduce this?

Forget that bottom runs in the background on a busy system :)

Additional information

It happens on all architectures but likely only *BSD have this syscall.

dmilith avatar Aug 31 '22 19:08 dmilith