Skip to content

Commit 1380c18

Browse files
committed
Documentation.
1 parent dbf8c11 commit 1380c18

File tree

1 file changed

+2
-0
lines changed
  • src/runtime/testdata/testwinsignal

1 file changed

+2
-0
lines changed

src/runtime/testdata/testwinsignal/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111
)
1212

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

0 commit comments

Comments
 (0)