Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Mar 17, 2022
1 parent dbf8c11 commit 1380c18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/testdata/testwinsignal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
)

func main() {
// ensure that this process terminates when the test times out,
// even if the expected signal never arrives
go func() {
io.Copy(io.Discard, os.Stdin)
log.Fatal("stdin is closed; terminating")
Expand Down

0 comments on commit 1380c18

Please sign in to comment.