]> git.ipfire.org Git - thirdparty/systemd.git/commit
util-lib: do not truncate kernel comm names
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 May 2019 09:55:59 +0000 (11:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 May 2019 08:09:35 +0000 (10:09 +0200)
commit0e85cbcfc35d3a0f18f593e7ffbd6b98e778f401
tree7a6747f0b98399e34e107aa7740acf72fda12820
parentbc28751ed2372065fd6f6f7ba6137edf21dee88b
util-lib: do not truncate kernel comm names

It turns out that the kernel allows comm names higher than our expected limit
of 16.
$ wc -c /proc/*/comm|sort -g|tail -n3
35 /proc/1292317/comm
35 /proc/1293610/comm
36 /proc/1287112/comm
$ cat /proc/1287112/comm
kworker/u9:3-kcryptd/253:0
src/basic/process-util.c
src/test/test-process-util.c