check pcntl_get_last_error and Task optimization