You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was originally reported here:
https://bugs.launchpad.net/gozk/+bug/1278930
But while investigating the issue I found that this has nothing to do with gokz and
happens if any C function is called during init(). Here's an example program that
demonstrates the issue:
package main
/*
#include <unistd.h>
*/
import "C"
import (
"fmt"
"runtime"
)
func init() {
C.sleep(0)
}
func main() {
fmt.Println("Hello!")
runtime.Goexit()
}
Instead of exiting after printing "Hello!" this program hangs up.