Skip to content

processhelp.pm: avoid potential endless loop, log more (Windows) #16908

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

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 1, 2025

pidwait() is a function to wait for a PID to disappear from the list
of processes. On Windows change this function to:

  • reduce the frequency of calling the external command tasklist to
    query the list of processes, including Windows-native ones, to 0.2s
    (from 0.01s).

  • print a message when the wait exceeds 5 second marks.

  • give up after 20 seconds of total wait, and print a message.

Also log taskkill commands to stdout instead of the log.

To potentially avoid hangs seen in CI, and make these spots more
transparent through the log.

Ref: #16840
Ref: #14854

@vszakats vszakats added tests Windows Windows-specific labels Apr 1, 2025
@vszakats vszakats changed the title processhelp.pm: avoid an endless loop, log more (Windows) processhelp.pm: avoid potential endless loop, log more (Windows) Apr 1, 2025
@vszakats vszakats closed this in 202a333 Apr 2, 2025
@vszakats vszakats deleted the ph-loop branch April 2, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Windows Windows-specific
Development

Successfully merging this pull request may close these issues.

1 participant