htop/linux
Christian Göttsche 3d5b6d9282 Fix assert failure on short running thread
The following assert failure might happen on short running threads with
an empty comm value in /proc/${pid}/stat:

htop: Process.c:1159: void Process_updateCmdline(Process *, const char *, int, int): Assertion `(cmdline && basenameStart < (int)strlen(cmdline)) || (!cmdline && basenameStart == 0)' failed.

The specific task is:
    comm=''
    exe='(null)'
    cmdline='/usr/bin/ruby /usr/bin/how-can-i-help --apt'

So basenameStart is 0, while strlen(cmdline) is also 0.
2021-05-23 15:25:23 +02:00
..
HugePageMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
HugePageMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
IOPriority.h Enclose macro arguments in parentheses 2020-10-28 19:57:10 +01:00
IOPriorityPanel.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
IOPriorityPanel.h platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
LibSensors.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
LibSensors.h platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
LinuxProcess.c Linux: drop obsolete code now in Process_writeField 2021-05-23 09:22:21 +02:00
LinuxProcess.h Move Process_makeCommandStr to global Process implementation 2021-05-23 09:22:21 +02:00
LinuxProcessList.c Fix assert failure on short running thread 2021-05-23 15:25:23 +02:00
LinuxProcessList.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00
Platform.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
Platform.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
PressureStallMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
PressureStallMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
ProcessField.h Move PROC_COMM/PROC_EXE column handling to global Process implementation 2021-05-23 09:22:21 +02:00
SELinuxMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
SELinuxMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
SystemdMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
SystemdMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
ZramMeter.c platform-dependent files included relative to main source directory 2021-05-10 18:40:53 +02:00
ZramMeter.h cleaned up includes with iwyu 2021-05-10 18:40:53 +02:00
ZramStats.h Linux: overhaul memory partition 2021-02-07 12:41:52 +01:00