Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2001 22:11:33 +0100 (CET)
From:      Andrzej Bialecki <abial@webgiro.com>
To:        freebsd-current@freebsd.org
Subject:   Broken procfs/status, related to kthreads
Message-ID:  <Pine.BSF.4.20.0102042204480.97202-100000@mx.webgiro.com>

next in thread | raw e-mail | index | archive | help
Hi,

Whoever made procfs aware of kernel threads broke also the
/proc/%pid/status line. Or, maybe it's a by-product of showing
kthreads in the proc table...

According to procfs(5), the status line contains several well-defined
fields separated by spaces. However, the kernel thread names look like
'swi5: task queue' and 'swi1: net', which results in variable number of
space-separated fields. As a consequence, some software that parses this
line gives incorrect results.

I noticed this while trying to fix mysterious coredumps in
src/release/picobsd/tinyware/aps (which is obsolete anyway, but it should
work).


Andrzej Bialecki

//  <abial@webgiro.com> WebGiro AB, Sweden (http://www.webgiro.com)
// -------------------------------------------------------------------
// ------ FreeBSD: The Power to Serve. http://www.freebsd.org --------
// --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ----




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0102042204480.97202-100000>