[illumos] use pipe2 to create anonymous pipes pipe2 allows the newly-created pipe to atomically be CLOEXEC. pipe2 was added to illumos a long time ago: 5dbfd19ad5. I've verified that this change passes all of std's tests on illumos.
5dbfd19ad5
%
fmodl
CloneToUninit
use