mirror of https://github.com/xzeldon/htop.git
Merge pull request #134 from jeffgarrett/pid-selection
Interpret command line PIDs as PIDs, not TIDs
This commit is contained in:
commit
ea18a50091
|
@ -273,7 +273,7 @@ void ProcessList_rebuildPanel(ProcessList* this) {
|
||||||
if ( (!p->show)
|
if ( (!p->show)
|
||||||
|| (this->userId != (uid_t) -1 && (p->st_uid != this->userId))
|
|| (this->userId != (uid_t) -1 && (p->st_uid != this->userId))
|
||||||
|| (incFilter && !(String_contains_i(p->comm, incFilter)))
|
|| (incFilter && !(String_contains_i(p->comm, incFilter)))
|
||||||
|| (this->pidWhiteList && !Hashtable_get(this->pidWhiteList, p->pid)) )
|
|| (this->pidWhiteList && !Hashtable_get(this->pidWhiteList, p->tgid)) )
|
||||||
hidden = true;
|
hidden = true;
|
||||||
|
|
||||||
if (!hidden) {
|
if (!hidden) {
|
||||||
|
|
Loading…
Reference in New Issue