Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Solaris: showing a dash for the top-level process is no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy M. Broome authored and hishamhm committed Apr 5, 2018
1 parent 3c96467 commit 1ae7625
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 1 addition & 7 deletions solaris/SolarisProcess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions solaris/SolarisProcessList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1ae7625

Please sign in to comment.