guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for (system '("echo" "foo" "bar"))


From: Kevin Ryde
Subject: Re: Support for (system '("echo" "foo" "bar"))
Date: Fri, 31 Oct 2003 06:09:31 +1000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Greg Troxel <address@hidden> writes:
>
> That said, a procedure to encapsulate the safer fork/exec/wait process
> would be very nice.

If it does a fork and exec then it could be called fork-exec :).

The old DOS systems used to use "spawn" for that sort of thing I think
(spawnl, spawnle, etc like the exec functions).

Either way, if it can get the errno back to the parent when exec fails
(and use _exit) then it'd be a nice improvement over a fork and exec
one might write explicitly.  (A close-on-exec pipe is a good way to do
that.)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]