From owner-freebsd-stable@FreeBSD.ORG Fri Jun 20 06:42:04 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B56FA37B401 for ; Fri, 20 Jun 2003 06:42:04 -0700 (PDT) Received: from mailhost.firstcallgroup.co.uk (dilbert.firstcallgroup.co.uk [194.200.93.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9E1443FD7 for ; Fri, 20 Jun 2003 06:42:03 -0700 (PDT) (envelope-from pfrench@firstcallgroup.co.uk) Received: from pfrench by mailhost.firstcallgroup.co.uk with local (Exim 4.12) id 19TM9P-000J3O-00 for stable@FreeBSD.ORG; Fri, 20 Jun 2003 14:41:59 +0100 To: stable@FreeBSD.ORG Message-Id: From: Pete French Date: Fri, 20 Jun 2003 14:41:59 +0100 Subject: procfs problems -cmdline turncated at 256 bytes ? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 13:42:05 -0000 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.