Skip to content

Get exitcode from proc_close if proc_get_status returns -1 - #14

Closed
PineappleIOnic wants to merge 1 commit into
masterfrom
feat-fix-incorrect-exitcode
Closed

PineappleIOnic wants to merge 1 commit into
masterfrom
feat-fix-incorrect-exitcode

Conversation

@PineappleIOnic

Copy link
Copy Markdown

When PHP's proc_get_status returns that a process is no longer running sometimes (not sure why, could be swoole, could be IO operations) the process is still running. which means the exitCode is not available and is reported as -1.

This fix will fetch the exitcode from proc_close if the exitcode is not already available from proc_get_status and will return that.

@PineappleIOnic
PineappleIOnic marked this pull request as draft March 10, 2022 11:28
@Meldiron

Copy link
Copy Markdown
Contributor

^ This did not solve the problem, still resolving in -1 error code in some cases. Created new PR: #15

@Meldiron

Copy link
Copy Markdown
Contributor

Can we close this one, @PineappleIOnic ?

@PineappleIOnic
PineappleIOnic deleted the feat-fix-incorrect-exitcode branch March 24, 2022 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants