Require forkpty() for detecting errors.