From owner-freebsd-hackers Wed Jul 14 11:19:38 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.its.rpi.edu (mail1.its.rpi.edu [128.113.100.7]) by hub.freebsd.org (Postfix) with ESMTP id DF355153FC for ; Wed, 14 Jul 1999 11:19:19 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail1.its.rpi.edu (8.8.8/8.8.6) with ESMTP id OAA05736; Wed, 14 Jul 1999 14:19:01 -0400 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: References: <378C98CB.E41232CA@fionn.sports.gov.uk> Date: Wed, 14 Jul 1999 14:19:00 -0400 To: wayne@crb-web.com From: Garance A Drosihn Subject: Re: changing argv[0] after fork() Cc: FreeBSD Hackers List Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 1:28 PM -0400 7/14/99, Wayne Cuddy wrote: > Even though I am developing on FBSD is there a "more portable" way > to do this? The man page for setproctitle(3) notes that none of the ways to do this are necessarily portable to other systems. That said, I have a routine from a lambdaMOO program which patches the command string, and apparently works on several different unix platforms. On the other hand, I just recently patched that routine so it would "work better" under FreeBSD, as what it was doing wasn't quite ideal. I could point you at that if you're interested. It does make sense that for any platform which DOES have a setproctitle, you should use that instead of other tricks. --- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or drosih@rpi.edu Rensselaer Polytechnic Institute To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message