thread-safe popen

Dan Nelson dnelson at
Tue Jul 5 14:38:26 GMT 2005

In the last episode (Jul 05), Dipjyoti Saikia said:
> I am working on an OS derived for BSD 4.1 .  I am trying to backport
> a thread-safe version of popen() from BSD 4.10 .

popen should be threadsafe as of rev 1.17 (2003-01-03) of
/usr/src/lib/libc/gen/popen.c .  It was merged into the 4.* branch in
rev (2004/12/15).  The PR is bin/50770 .  Do you have a
testcase that causes it to fail?

	Dan Nelson
	dnelson at

More information about the freebsd-hackers mailing list