Re: Proposal: execvP

From: Tim Kientzle (kientzle_at_acm.org)
Date: 06/24/03

  • Next message: Kris Kennaway: "Re: little question"
    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"


  • Next message: Kris Kennaway: "Re: little question"