use of perror.output set on the right fd