popen: handle issues with fd0/1 being closed
authorRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 18:32:48 +0000 (14:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 18:32:48 +0000 (14:32 -0400)
commitf305467aad4659e92fff84be6c89d4767b6f99d4
treeded2078e2d9ca11091774e41cc71bd3c2df45a0b
parentb3d7d062af63d833b9a984770320534719252b61
popen: handle issues with fd0/1 being closed

also check for failure of dup2 and abort the child rather than
reading/writing the wrong file.
src/stdio/popen.c