Skip to content

Commit

Permalink
Exit process directly
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed May 7, 2020
1 parent f69bda7 commit a732fe5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions swoole_process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1188,19 +1188,7 @@ static PHP_METHOD(swoole_process, exit)
ret_code = 1;
}

close(process->pipe_current->fd);
process->pipe_current->fd = -1;

SwooleG.running = 0;

if (ret_code == 0)
{
sw_zend_bailout();
}
else
{
exit(ret_code);
}
exit(ret_code);
}

static PHP_METHOD(swoole_process, close)
Expand Down

0 comments on commit a732fe5

Please sign in to comment.