Date: Mon, 5 Feb 2001 09:36:09 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Andrzej Bialecki <abial@webgiro.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Broken procfs/status, related to kthreads Message-ID: <Pine.BSF.4.21.0102050925130.13309-100000@besplex.bde.org> In-Reply-To: <Pine.BSF.4.20.0102042204480.97202-100000@mx.webgiro.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Feb 2001, Andrzej Bialecki wrote: > 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 think procfs never actually implemented this. Program names may have spaces in them too. Of course, the line is too hard to parse if the first "field" has spaces in it. Only MAXCOMLEN and NAME_MAX prevent the command name being the contents of another process's status line :-). Bruce 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.21.0102050925130.13309-100000>