diff options
author | Rin Cat (鈴猫) <dev@rincat.ch> | 2021-11-08 09:42:12 -0500 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-11-09 19:04:25 +0100 |
commit | 07496eafb0166aafd9c33a6a95e16bcbc64c34d4 (patch) | |
tree | 1e9a9fbb942a4731d3bae5e6133d6372250bae90 /dragonflybsd | |
parent | e7a8d14cbd7bbb896e64effed5bc6fb023777d36 (diff) |
Linux: use proper way to detect kernel threads
Use PF_KTHREAD flag in /proc/[pid]/stat to detect kernel threads.
This fixed an issue when a process's cmdline is empty, htop think
it is a kernel thread.
Diffstat (limited to 'dragonflybsd')
0 files changed, 0 insertions, 0 deletions