delve/_fixtures/testprog.go
aarzilli d919114d32 Fix: Linux - call wait4 on thread grp leader is broken
On a thread that's leader of its group,
that is ptraced and that was survived by its children.
2015-06-26 22:10:09 -05:00

27 lines
276 B
Go

package main
import (
"fmt"
"runtime"
"time"
)
func helloworld() {
fmt.Println("Hello, World!")
}
func sleepytime() {
time.Sleep(time.Millisecond)
}
func main() {
for i := 0; i < 500; i++ {
sleepytime()
helloworld()
}
}
func init() {
runtime.LockOSThread()
}