Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2003 14:41:59 +0100
From:      Pete French <pfrench@firstcallgroup.co.uk>
To:        stable@FreeBSD.ORG
Subject:   procfs problems -cmdline turncated at 256 bytes ?
Message-ID:  <E19TM9P-000J3O-00@mailhost.firstcallgroup.co.uk>

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

running 4.8 stable, the cmdline file in /proc/$$ seems to be trucated
at, or before 256 bytes for very long command lines. I cant find
any refernec to this behaviour in the manpage, nor does google reveal
anything. I took a look in the source, but didnt properly understand what
was going on - the comments imply that it does give the full commandline
for the current process, however.

any suggestions ? any alternative ways to get hold of the arguments from
within a running program (which doesnt have access to "main()").

-pcf.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19TM9P-000J3O-00>