From owner-freebsd-bugs Fri Jun 9 11:50:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 74DD737B641 for ; Fri, 9 Jun 2000 11:50:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA50831; Fri, 9 Jun 2000 11:50:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 9 Jun 2000 11:50:05 -0700 (PDT) Message-Id: <200006091850.LAA50831@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Poul-Henning Kamp Subject: Re: bin/19145: ps not annotatable in 4.0 Reply-To: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/19145; it has been noted by GNATS. From: Poul-Henning Kamp To: billh@europe.yahoo-inc.com Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: bin/19145: ps not annotatable in 4.0 Date: Fri, 09 Jun 2000 20:43:03 +0200 >then compile and run the following (call it argv0.c, "make argv0") > >int main(int argc, char *argv[]) >{ > argv[0] = "test"; > sleep(500); > return(0); >} Use setproctitle() -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message