htop icon indicating copy to clipboard operation
htop copied to clipboard

Add option to hide processes running in a container

Open valdaarhun opened this issue 1 year ago • 1 comments

Might close #1036

The patch makes use of NSpid to check whether a process runs inside a pid namespace that is different from the host's init process' pid namespace. If this check is true, the cgroup name is checked to ensure it isn't a process running on the host that happens to run in a different pid namespace.

valdaarhun avatar Aug 09 '22 15:08 valdaarhun

Please have a look at the compile issues mentioned by the CI. There seem to be some headers missing for iswdigit AFAICS.

BenBE avatar Aug 09 '22 20:08 BenBE

Feel free to clean up the history on your PR as much as you like

Cool. I'll clean up the commit history and push it again.

valdaarhun avatar Aug 17 '22 07:08 valdaarhun

I have cleaned up the commit history as best as I could.

valdaarhun avatar Aug 17 '22 19:08 valdaarhun

The O keyboard shortcut is not documented in the F1 help. Could this also be added? Same for the man page.

m0vie avatar May 06 '23 12:05 m0vie

@m0vie Hi, thanks for pointing this out. This must have slipped my mind. It's been resolved in #1250 .

valdaarhun avatar May 24 '23 08:05 valdaarhun