Fix non-pcntl operation