Re: Proposal: execvP
From: Tim Kientzle (kientzle_at_acm.org)
Date: 06/24/03
- Previous message: Rajappa Iyer: "Re: Proposal: execvP"
- In reply to: Rajappa Iyer: "Re: Proposal: execvP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 23 Jun 2003 15:44:48 -0700 To: Rajappa Iyer <rsi@panix.com>
Rajappa Iyer wrote:
> Tim Kientzle <kientzle@acm.org> writes:
>>In essence, execvP() is merely publishing an already-existing capability
>>within the library by breaking execvp() into two very natural pieces.
>>Without this, I basically will have to copy a slightly modified version
>>of execvp() into several utilities, which seems a rather pointless
>>exercise.
>
>
> What's wrong with
>
> putenv("PATH=newpath");
> execvp(...);
>
> What am I missing?
>
> rsi
Your suggested code changes the PATH that
is used by child processes.
Tim
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Rajappa Iyer: "Re: Proposal: execvP"
- In reply to: Rajappa Iyer: "Re: Proposal: execvP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]