hyper0x/goc2p

In goc2p/src/multiproc/apipe/apipe.go demo02 generates defunct process

hankai17 opened this issue · 1 comments

func main() {
	demo1()
	fmt.Println()
	demo2()
}

reproducing

func main() {
	//demo1()
	fmt.Println()
	demo2()
        time.Sleep(time.Seconds * 10)
}

Just sleep 10s. Meanwhile you can run ps -ef. You can see [ps] <defunct>

Ok. Refer #15. I tried the latest edition. It seems no problems.