popen/pclose problem in Linux 2.2.x with vfork/glibc 2.1

Ulrich Drepper drepper@cygnus.com
Thu Apr 1 00:00:00 GMT 1999


Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:

> Thanks for all replies.  I do think we have to use fork instead of
> vfork for popen in glibc since the code changes some globals and calls
> dup2 and close:

I don't think this is necessary.  The changes to global variables and
functions calls should not effect the main process.  Before we make
any change it should be clear it's necessary.  Using vfork has its
advantages.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------



More information about the Libc-alpha mailing list