Library wrapper for pcntl and named pipe work