Re: [PATCH] (Updated) Exec git programs without using PATH.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jan 11, 2006, 20:42 UTC
- Message-ID
- <Pine.LNX.4.64.0601111238550.5073@g5.osdl.org>
- In-Reply-To
- <7vek3esdw0.fsf@assigned-by-dhcp.cox.net>
On Wed, 11 Jan 2006, Junio C Hamano wrote:
Show 5 quoted lines
> > For your (primarily Michal, but other interested parties as > well) reference, here is the diff between your patch in the > message I am replying to and what I placed in the "pu" branch > last night.
Tangentially related note: maybe we should try to move to a "spawn()" like interface so that it could port better to native Windows interfaces?
Even under Linux, using vfork()+exec() is actually faster than a regular fork/exec, so there are potential advantages.
The real advantage of fork+exec is how you can do arbitrary setup between the two, without needing insanely complex rules for file descriptors etc. But maybe we don't have tons of those issues?
Linus