Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Feb 1997 06:47:25 +0100
From:      j@uriah.heep.sax.de (J Wunsch)
To:        FreeBSD-hackers@FreeBSD.org
Subject:   Re: hmm
Message-ID:  <Mutt.19970220064725.j@uriah.heep.sax.de>
In-Reply-To: <199702192305.RAA08083@solaria.sol.net>; from Joe Greco on Feb 19, 1997 17:05:29 -0500
References:  <199702192053.VAA02956@gvr.win.tue.nl> <199702192305.RAA08083@solaria.sol.net>

next in thread | previous in thread | raw e-mail | index | archive | help
As Joe Greco wrote:

> > > 	char *p;
> > > 
> > > 	if ((p = argv[0]) == NULL)
> > > 		errx(2,"test: argc is zero");
> 
> Sanity check?  I can't think of any cases where this would happen, but
> maybe some kernel god would correct me.

I think you could start a program without giving it an argv[0] if you
use exec*() directly.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970220064725.j>