]> granicus.if.org Git - procps-ng/commitdiff
library: Increase comm length to 64
authorCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 22:04:19 +0000 (08:04 +1000)
committerCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 22:04:19 +0000 (08:04 +1000)
For many years, the comm length has been set to 16. Previously to that
it was 8. This means for things like kworkers they all have very cryptic
names. The kernel is now going to increase this size to 64, so the
procps library will follow this length increase.

System tools may also increase their default length to 64, or keep it at
16; there is only so much screen real estate.

References:
 https://lkml.org/lkml/2018/5/17/16

proc/readproc.h

index ba856ca477cf14334b294e9ab20c33c2cc10ee01..a3fdb510f7493a9249426c371ea55cbc685990c6 100644 (file)
@@ -150,7 +150,7 @@ typedef struct proc_t {
        egroup[P_G_SZ], // status          effective group name
        sgroup[P_G_SZ], // status          saved group name
        fgroup[P_G_SZ], // status          filesystem group name
-       cmd[16];        // stat,status     basename of executable file in call to exec(2)
+        cmd[64];       // stat,status     basename of executable file in call to exec(2)
     struct proc_t
        *ring,          // n/a             thread group ring
        *next;          // n/a             various library uses