Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
6790e004
Commit
6790e004
authored
Mar 28, 2018
by
Guy M. Broome
Committed by
Hisham Muhammad
Apr 06, 2018
Browse files
Solaris: showing a dash for the top-level process is no longer necessary
parent
86771628
Changes
2
Hide whitespace changes
Inline
Side-by-side
solaris/SolarisProcess.c
View file @
6790e004
...
...
@@ -159,13 +159,7 @@ void SolarisProcess_writeField(Process* this, RichString* str, ProcessField fiel
}
case
PID
:
xSnprintf
(
buffer
,
n
,
Process_pidFormat
,
sp
->
realpid
);
break
;
case
PPID
:
xSnprintf
(
buffer
,
n
,
Process_pidFormat
,
sp
->
realppid
);
break
;
case
LWPID
:{
if
(
sp
->
lwpid
<=
0
)
{
xSnprintf
(
buffer
,
n
,
" - "
);
}
else
{
xSnprintf
(
buffer
,
n
,
Process_pidFormat
,
sp
->
lwpid
);
break
;
}
};
break
;
case
LWPID
:
xSnprintf
(
buffer
,
n
,
Process_pidFormat
,
sp
->
lwpid
);
break
;
default:
Process_writeField
(
this
,
str
,
field
);
return
;
...
...
solaris/SolarisProcessList.h
View file @
6790e004
...
...
@@ -50,6 +50,12 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, ui
void
ProcessList_delete
(
ProcessList
*
this
);
/* NOTE: the following is a callback function of type proc_walk_f
* and MUST conform to the appropriate definition in order
* to work. See libproc(3LIB) on a Solaris or Illumos
* system for more info.
*/
int
SolarisProcessList_walkproc
(
psinfo_t
*
_psinfo
,
lwpsinfo_t
*
_lwpsinfo
,
void
*
listptr
);
void
ProcessList_goThroughEntries
(
ProcessList
*
this
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment