aboutsummaryrefslogtreecommitdiffstats
path: root/ProcessLocksScreen.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2024-01-10 12:40:37 +0100
committerDaniel Lange <DLange@git.local>2024-01-10 12:40:37 +0100
commit7271b076b82785ffca73ee9e4ae84cabb77018ee (patch)
treee8270dd60ec096bee8157dbadf029e15ed584592 /ProcessLocksScreen.c
parentf288666edc9180a2e81e6655951878124f321df6 (diff)
downloaddebian_htop-upstream.tar.gz
debian_htop-upstream.tar.bz2
debian_htop-upstream.zip
New upstream version 3.3.0upstream/3.3.0upstream
Diffstat (limited to 'ProcessLocksScreen.c')
-rw-r--r--ProcessLocksScreen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ProcessLocksScreen.c b/ProcessLocksScreen.c
index 57c9ce7..36a37f9 100644
--- a/ProcessLocksScreen.c
+++ b/ProcessLocksScreen.c
@@ -24,9 +24,9 @@ ProcessLocksScreen* ProcessLocksScreen_new(const Process* process) {
ProcessLocksScreen* this = xMalloc(sizeof(ProcessLocksScreen));
Object_setClass(this, Class(ProcessLocksScreen));
if (Process_isThread(process))
- this->pid = process->tgid;
+ this->pid = Process_getThreadGroup(process);
else
- this->pid = process->pid;
+ this->pid = Process_getPid(process);
return (ProcessLocksScreen*) InfoScreen_init(&this->super, process, NULL, LINES - 2, " FD TYPE EXCLUSION READ/WRITE DEVICE NODE START END FILENAME");
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy