This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: popen/pclose problem in Linux 2.2.x with vfork/glibc 2.1
- To: Pete Wyckoff <wyckoff@ca.sandia.gov>
- Subject: Re: popen/pclose problem in Linux 2.2.x with vfork/glibc 2.1
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 29 Mar 1999 09:16:24 -0800
- Cc: "Brandon S. Allbery KF8NH" <allbery@kf8nh.apk.net>, libc-alpha@cygnus.com
- References: <19990327180106.A22107@dancer.ca.sandia.gov> <u8yakhdhp3.fsf@arthur.rhein-neckar.de>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------