Hi there!

I have another patch for htop!  htop currently does not update a
process' name if it changes (some scripts set their process name to
reflect their role or progress); this patch changes that.

Thanks,
Rob
diff --git a/ProcessList.c b/ProcessList.c
index bbb5cff..90f057a 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -701,12 +701,12 @@ static bool ProcessList_processEntries(ProcessList* this, 
const char* dirname, P
          ProcessList_readVServerData(process, dirname, name);
          #endif
          
-         if (! ProcessList_readCmdlineFile(process, dirname, name))
-            goto errorReadingProcess;
-
          ProcessList_add(this, process);
       }
 
+     if (! ProcessList_readCmdlineFile(process, dirname, name))
+        goto errorReadingProcess;
+
       if (process->state == 'Z') {
          free(process->comm);
          process->comm = strdup(command);
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
htop-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htop-general

Reply via email to