This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
RE: fork() idea
- From: "Gary R. Van Sickle" <g dot r dot vansickle at worldnet dot att dot net>
- To: <cygwin-developers at cygwin dot com>
- Date: Tue, 29 Jan 2002 00:53:10 -0600
- Subject: RE: fork() idea
What about avoiding fork() entirely? I'm of course not talking about a general
solution, but take sh for example; would it be possible to write a shell that
simply never forks (or has it already been done)? That alone would be a massive
win. Seems that one could simply (he sez) maintain a state stack where each
time you see a "var=$(echo something | somethingelse)", instead of forking you'd
just push a new shell state on the stack, spawn the commands, do the piping and
other shell-things in the same process, pop the stack and Bob's yer uncle, no
fork overhead.
Or am I missing something fundamental?
--
Gary R. Van Sickle
Brewer. Patriot.