// Test various operations when a signal handler is installed without // the SA_RESTART flag. This tests that the os and net APIs handle EINTR. public static void EINTR() { { var errno__prev1 = errno; var errno = C.clearRestart(C.@int(syscall.SIGURG)); if (errno != 0L) { log.Fatal(syscall.Errno(errno)); } errno = errno__prev1; } { var errno__prev1 = errno; errno = C.clearRestart(C.@int(syscall.SIGWINCH)); if (errno != 0L) { log.Fatal(syscall.Errno(errno)); } errno = errno__prev1; } { var errno__prev1 = errno; errno = C.clearRestart(C.@int(syscall.SIGCHLD)); if (errno != 0L) { log.Fatal(syscall.Errno(errno)); } errno = errno__prev1; } ref sync.WaitGroup wg = ref heap(out ptr <sync.WaitGroup> _addr_wg);
private static @string Error(this addrinfoErrno eai) { return(C.GoString(C.gai_strerror(C.@int(eai)))); }