make popen cancellation-safe
authorRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 18:39:50 +0000 (14:39 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 18:39:50 +0000 (14:39 -0400)
commit9c21f4342c787e04a9e31ad8a1d87a65c89968ca
treeec09299484f96dd61e6ebe84f37ceab69610a3f5
parentf305467aad4659e92fff84be6c89d4767b6f99d4
make popen cancellation-safe

close was the only cancellation point called from popen, but it left
popen with major resource leaks if any call to close got cancelled.
the easiest, cheapest fix is just to use a non-cancellable close
function.
src/stdio/popen.c