public static void CgoRaceSignal() { // The failure symptom is that the program hangs because of a // deadlock in malloc, so set an alarm. go_(() => () => { time.Sleep(5L * time.Second); fmt.Println("Hung for 5 seconds"); os.Exit(1L); } ()); C.runRaceSignalThread(); fmt.Println("OK"); }