Subject: Re: popen-like code
To: None <netbsd-users@netbsd.org>
From: Matthias Scheler <tron@zhadum.de>
List: netbsd-users
Date: 07/24/2001 17:25:55
In article <Pine.NEB.4.33.0107211257550.5775-100000@wojtek.3miasto.net>,
Wojciech Puchar <wojtek@wojtek.3miasto.net> writes:
> could someone tell me what should i do before/after vfork to redirect
> child's stdout to something in parent process but without using popen.
The source code of popen(3) shows how to implement this. You will find
it here:
http://cvsweb.netbsd.org/bsdweb.cgi/basesrc/lib/libc/gen/popen.c
Kind regards
--
Matthias Scheler http://scheler.de/~matthias/