Summary

process-wait does not function corrently with nohang on Windows

Metadata

Attachments

Description

On Windows, if you specify #t to nohang when calling process-wait, and the process is still running, you will get an error with a bogus error message. This is because process-wait uses WaitForSingleObject on Windows, and the result code WAIT_TIMEOUT is not handled, being treated as an error even though there was never an error in the first place. Attached is a patch to fix this bug.

Changes and comments

[2018-04-23 15:23:39 UTC] jrobbins attached patch.txt (description=#f)

[2026-07-14 22:47:00 UTC] felix set owner to felix

[2026-07-14 22:47:01 UTC] felix changed status from new to accepted

[2026-07-29 13:51:44 UTC] felix wrote:

Patch applied.

[2026-07-29 13:51:45 UTC] felix changed status from accepted to closed

[2026-07-29 13:51:45 UTC] felix set resolution to fixed