subprocess interface improvements
Bug #354712 reported by
Andreas Rottmann
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Low
|
Abdulaziz Ghuloum |
Bug Description
It would be nice if the subprocess interface could be extended to cover these cases:
1) Allow choosing not to search $PATH (i.e. use execv() instead of exevp()).
2) Allow specifying the environment for the subprocess.
3) Allow using existing file handles as std{in,out,err} for the subprocess, to allow building pipelines. This would
probably involve providing a way (internally) to get at the file descriptor underlying a specific port.
--Rotty
Related branches
To post a comment you must log in.
I've hacked up a quick patch that does (1) and (3) -- it turned out the filehandles are readily available, so this was rather straightforward. I'm not sure about what API should be exposed to the user; the `process*' procedure I added takes quite a lot of arguments; any ideas how to enhance the API?
If my patch aims into the right direction, I'll refine it (e.g. add (2)), and when an API is settled upon, I could also write docs, if wanted.