Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProcessWatchdog: no longer fail on exit code 259 on Windows #450

Merged
merged 5 commits into from
Dec 3, 2023

Conversation

ForNeVeR
Copy link
Collaborator

Our previous implementation of ProcessWatchdog was susceptible to a well-known issue of GetProcessExitCode: if the process' real exit code is STILL_ALIVE, then there's no way to determine that it has exited, because this number is equal to a special value that function returns for a living process.

This new implementation fixes that, and also introduces a new, better API to pass more arguments (mostly for the purpose of testing).

Our previous implementation of ProcessWatchdog was susceptible to a
well-known issue of GetProcessExitCode: if the process' real exit code
is STILL_ALIVE, then there's no way to determine that it has exited,
because this number is equal to a special value that function returns
for a living process.

This new implementation fixes that, and also introduces a new, better
API to pass more arguments (mostly for the purpose of testing).
@ForNeVeR ForNeVeR force-pushed the im/process-watchdog-improvements branch from cc5085e to a96a008 Compare November 30, 2023 22:06
@ForNeVeR ForNeVeR self-assigned this Dec 1, 2023
LogLog.StoredRecords is a copy of the source list; clearing it has no
effect on the actual stored contents.
@ForNeVeR ForNeVeR force-pushed the im/process-watchdog-improvements branch from 63b26a3 to 5d61b6e Compare December 2, 2023 17:14
…timeout

timeout was behaving weirdly in cmd with IO redirection.
@ForNeVeR ForNeVeR force-pushed the im/process-watchdog-improvements branch 2 times, most recently from a8b5b3c to 7e3d773 Compare December 2, 2023 18:00
This code is out of range of valid exit codes on Unix anyway.
@ForNeVeR ForNeVeR force-pushed the im/process-watchdog-improvements branch from 7e3d773 to ef45bfa Compare December 2, 2023 18:06
@ForNeVeR ForNeVeR assigned Iliya-usov and unassigned ForNeVeR Dec 2, 2023
@ForNeVeR ForNeVeR marked this pull request as ready for review December 2, 2023 20:19
@Iliya-usov Iliya-usov merged commit b198ed8 into master Dec 3, 2023
10 checks passed
@Iliya-usov Iliya-usov deleted the im/process-watchdog-improvements branch December 3, 2023 14:42
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