summaryrefslogtreecommitdiffstats
path: root/solaris
diff options
context:
space:
mode:
authorGuy M. Broome <thrirhrafnir@gmail.com>2018-03-28 16:07:32 -0400
committerHisham Muhammad <hisham@gobolinux.org>2018-04-05 19:38:13 -0300
commit1ae7625c428666092280d011f034d5c5c9177b4b (patch)
treefa019d1f6da35217274b06783435f44e3e59a4f4 /solaris
parent3c96467f7b296dae9e05ce72fff0d370aa7a3576 (diff)
Solaris: showing a dash for the top-level process is no longer necessary
Diffstat (limited to 'solaris')
-rw-r--r--solaris/SolarisProcess.c8
-rw-r--r--solaris/SolarisProcessList.h6
2 files changed, 7 insertions, 7 deletions
diff --git a/solaris/SolarisProcess.c b/solaris/SolarisProcess.c
index daa9d437..365e2ac1 100644
--- a/solaris/SolarisProcess.c
+++ b/solaris/SolarisProcess.c
@@ -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;
diff --git a/solaris/SolarisProcessList.h b/solaris/SolarisProcessList.h
index 4fa273d8..8bebd897 100644
--- a/solaris/SolarisProcessList.h
+++ b/solaris/SolarisProcessList.h
@@ -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);

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