Summary
process-wait does not function corrently with nohang on Windows
Metadata
- Id: 460f11da1556709367f5997ca03744513cc6353c
- Trac id: 1454
- Type: defect
- Reporter: jrobbins
- Owner: felix
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty: trivial
- Resolution: fixed
- Priority: major
- Milestone: someday
- Version: 4.13.0
- Changetime: 2026-07-29 13:51:45 UTC
- Created: 2018-04-23 15:23:30 UTC
- Keywords:
Attachments
- 460f11da1556709367f5997ca03744513cc6353c/attachments/patch.txt
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.