fix double errno-decoding in the old-kernel fallback path of pipe2
authorRich Felker <dalias@aerifal.cx>
Tue, 11 Dec 2012 14:38:38 +0000 (09:38 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 11 Dec 2012 14:38:38 +0000 (09:38 -0500)
commitbcc20d2b94e2c6649597d552b94718197be0674f
treef7805806f61b5aabfcd1186202f651fb9fbbc7f3
parent490d4a0e9e96eabffa553b279b07725c39010c1a
fix double errno-decoding in the old-kernel fallback path of pipe2

this bug seems to have caused any failure by pipe2 on such systems to
set errno to 1, rather than the proper error code.
src/unistd/pipe2.c