golang/go

os: process.Wait marks the process as already finished on ptrace stop signals on Linux

Open

#60,321 opened on May 20, 2023

View on GitHub
 (14 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsInvestigationhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

What version of Go are you using (go version)?

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

What did you do?

https://go.dev/play/p/PYGxV0Kg3pF

What did you expect to see?

2009/11/10 23:00:00 status: true 5
2009/11/10 23:00:00 end

Or nothing, if process.Wait returns only on exit status and not stopped status.

What did you see instead?

2009/11/10 23:00:00 status: true 5
2009/11/10 23:00:00 os: process already finished

Contributor guide