mirror of https://github.com/xzeldon/htop.git
Solaris: showing a dash for the top-level process is no longer necessary
This commit is contained in:
parent
3c96467f7b
commit
1ae7625c42
|
@ -159,13 +159,7 @@ void SolarisProcess_writeField(Process* this, RichString* str, ProcessField fiel
|
||||||
}
|
}
|
||||||
case PID: xSnprintf(buffer, n, Process_pidFormat, sp->realpid); break;
|
case PID: xSnprintf(buffer, n, Process_pidFormat, sp->realpid); break;
|
||||||
case PPID: xSnprintf(buffer, n, Process_pidFormat, sp->realppid); break;
|
case PPID: xSnprintf(buffer, n, Process_pidFormat, sp->realppid); break;
|
||||||
case LWPID:{
|
case LWPID: xSnprintf(buffer, n, Process_pidFormat, sp->lwpid); break;
|
||||||
if (sp->lwpid <= 0) {
|
|
||||||
xSnprintf(buffer, n, " - ");
|
|
||||||
} else {
|
|
||||||
xSnprintf(buffer, n, Process_pidFormat, sp->lwpid); break;
|
|
||||||
}
|
|
||||||
}; break;
|
|
||||||
default:
|
default:
|
||||||
Process_writeField(this, str, field);
|
Process_writeField(this, str, field);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -50,6 +50,12 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, ui
|
||||||
|
|
||||||
void ProcessList_delete(ProcessList* this);
|
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);
|
int SolarisProcessList_walkproc(psinfo_t *_psinfo, lwpsinfo_t *_lwpsinfo, void *listptr);
|
||||||
|
|
||||||
void ProcessList_goThroughEntries(ProcessList* this);
|
void ProcessList_goThroughEntries(ProcessList* this);
|
||||||
|
|
Loading…
Reference in New Issue