importing gozk causes runtime.Goexit() to hang
Bug #1278930 reported by
Dvir Volk
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gozk |
New
|
Undecided
|
Unassigned |
Bug Description
I've encountered this running a program that needed to exit on --help.
Found out that importing gozk causes it not to exit (go 1.2) when runtime.Goexit() is called.
I've managed to reproduce this, and even track the source of the problem :)
reproduce code here (not working in the playground of course):
http://
The root of it is zk.go:264 - in init(): SetLogLevel(0)
which calls some C functions. Commenting it out removes the problem.
source for the above play attached
To post a comment you must log in.
This seems to be an issue with cgo, reported here: http:// code.google. com/p/go/ issues/ detail? id=7711