bb6094 - check dup2() return value