Corrected a problem with stderr being closed on fork.