Subject: Re: process argument in 1.5
To: flav <flav@epita.fr>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: netbsd-users
Date: 02/06/2001 11:13:24
On Tue, Feb 06, 2001 at 10:07:34AM +0000, flav wrote:
> On Tue, Feb 06, 2001 at 06:02:58PM +0900, Masao Uebayashi wrote:
> > > 	in the 1.5 version when I try to change the process' argument
> > > it fails:
> > > 
> > > void	main(ac,av)
> > > int	ac;
> > > char	**av;
> > > {
> > >    av[1] = "my_arg";
> > >    av[0] = 0;
> > > }
> > > 
> > > like it in instance.
> > > 
> > > anyone have an idea ??
> > 
> > No idea. It works on NetBSD 1.4X and Solaris 8.
> > 
> > Just curiousity, but why do you want to do that?
> 
> it is for a gateway, (tgw: www.epita.fr/~flav/tgw),
> it could display in ps the incoming and outcoming connection.

How about setproctitle(3) ?

  -jm