summaryrefslogtreecommitdiffstats
path: root/term-utils/wall.1
diff options
context:
space:
mode:
authorOGAWA Hirofumi2016-11-23 06:13:34 +0100
committerKarel Zak2016-12-02 13:20:41 +0100
commit3fcbd7978980dc1a29c626b701333e27599e506d (patch)
tree909e4a4dea71964bcf3f9ab41c4a740b83b12e7d /term-utils/wall.1
parentmisc: fix typos using codespell (diff)
downloadkernel-qcow2-util-linux-3fcbd7978980dc1a29c626b701333e27599e506d.tar.gz
kernel-qcow2-util-linux-3fcbd7978980dc1a29c626b701333e27599e506d.tar.xz
kernel-qcow2-util-linux-3fcbd7978980dc1a29c626b701333e27599e506d.zip
lsns: Fix parser for /proc/<pid>/stat which is including space in comm
For example, child process of spamd has 32031 (spamd child) S 32026 32026 32026 0 -1 4210752 338 0 0 0 ... fscanf("%d %*s %c %d*[^\n]") in read_process() can't parse above as we expected, because %s only skips non-whitespace. I.e. it parses like following, 32031 (spamd child) S 32026 32026 32026 0 -1 4210752 338 0 0 0 ... +---+ +----+ + %d %*s %c and returns 2 (pid=32031, state=c). This fixes it by skipping task->comm part manually. Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Diffstat (limited to 'term-utils/wall.1')
0 files changed, 0 insertions, 0 deletions