use dup2() instead of unportable dup3()
@jasperla
Submitted by Jasper Lievisse Adriaanse Link to original bug (#697024)
Description
It seems that the usage of dup3() is not needed and dup2() suffices. This would fix some breakage seen on non-Linux as dup3() is a GLIBC-extension, not defined in POSIX.
I have not noticed any regressions in runtime when using dup2(), so would it be ok to push this patch?
Version: git master
Resolution: RESOLVED FIXED