- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 325 for exit2 (0.09 sec)
-
src/runtime/ehooks_test.go
expected: "blub blix", }, { mode: "panics", musthave: []string{ "fatal error: exit hook invoked panic", "main.testPanics", }, }, { mode: "callsexit", musthave: []string{ "fatal error: exit hook invoked exit", }, }, { mode: "exit2", expected: "", }, } exe, err := buildTestProg(t, "testexithooks", bmode) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0) -
src/runtime/testdata/testexithooks/testexithooks.go
f2 := func() { os.Exit(1) } f3 := func() { println("good") } exithook.Add(exithook.Hook{F: f1, RunOnFailure: true}) exithook.Add(exithook.Hook{F: f2, RunOnFailure: true}) exithook.Add(exithook.Hook{F: f3, RunOnFailure: true}) os.Exit(1) } func testExit2() { f1 := func() { time.Sleep(100 * time.Millisecond) } exithook.Add(exithook.Hook{F: f1}) for range 10 { go os.Exit(0) } os.Exit(0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 2.1K bytes - Viewed (0) -
src/internal/testlog/exit.go
import ( "sync" _ "unsafe" // for linkname ) // PanicOnExit0 reports whether to panic on a call to os.Exit(0). // This is in the testlog package because, like other definitions in // package testlog, it is a hook between the testing package and the // os package. This is used to ensure that an early call to os.Exit(0) // does not cause a test to pass. func PanicOnExit0() bool { panicOnExit0.mu.Lock() defer panicOnExit0.mu.Unlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 1.3K bytes - Viewed (0) -
test/typeparam/graph.go
18: {exits: [10]int{down: 16, east: 19, west: 18, up: 22}}, 19: {exits: [10]int{up: 29, west: 18, ne: 15, east: 20, south: 30}}, 20: {exits: [10]int{ne: 19, west: 20, se: 21}}, 21: {exits: [10]int{north: 20}}, // Dead End 22: {exits: [10]int{north: 18, east: 24, down: 23, south: 28, west: 26, nw: 22}}, 23: {exits: [10]int{east: 22, west: 28, up: 24}}, 24: {exits: [10]int{ne: 25, down: 23, nw: 28, sw: 26}},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 5.7K bytes - Viewed (0) -
src/runtime/os3_plan9.go
// We can't safely sigpanic because it may grow the // stack. Abort in the signal handler instead. flags = (flags &^ _SigPanic) | _SigThrow } if flags&_SigGoExit != 0 { exits((*byte)(add(unsafe.Pointer(note), 9))) // Strip "go: exit " prefix. } if flags&_SigPanic != 0 { // Copy the error string from sigtramp's stack into m->notesig so // we can reliably access it from the panic routines.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 4K bytes - Viewed (0) -
hack/verify-gofmt.sh
-o -wholename '*/third_party/*' \ -o -wholename '*/vendor/*' \ -o -wholename '*/testdata/*' \ -o -wholename '*/bindata.go' \ \) -prune \ \) -name '*.go' } # gofmt exits with non-zero exit code if it finds a problem unrelated to # formatting (e.g., a file does not parse correctly). Without "|| true" this # would have led to no useful error message from gofmt, because the script would
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:07:31 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/go/internal/base/tool.go
// If the tool cannot be found, Tool exits the process. func Tool(toolName string) string { toolPath, err := ToolPath(toolName) if err != nil && len(cfg.BuildToolexec) == 0 { // Give a nice message if there is no tool with that name. fmt.Fprintf(os.Stderr, "go: no such tool %q\n", toolName) SetExitStatus(2) Exit() } return toolPath }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:04:09 UTC 2024 - 1.1K bytes - Viewed (0) -
hack/lib/logging.sh
[[ -z ${1-} ]] || { echo " ${1}" >&2 } kube::log::stack ${stack_skip} echo "Exiting with status ${code}" >&2 fi exit "${code}" } # Log an error but keep going. Don't dump the stack or exit. kube::log::error() { timestamp=$(date +"[%m%d %H:%M:%S]") echo "!!! ${timestamp} ${1-}" >&2 shift for message; do echo " ${message}" >&2 done }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 06 14:40:08 UTC 2024 - 4.3K bytes - Viewed (0) -
pkg/envoy/agent.go
} // Run starts the envoy and waits until it terminates. // There are a few exit paths: // 1. Envoy exits. In this case, we simply log and exit. // 2. /quitquitquit (on agent, not Envoy) is called. We will set skipDrain and cancel the context, which triggers us to exit immediately. // 3. SIGTERM. We will drain, wait termination drain duration, then exit. This is the standard pod shutdown; SIGTERM arrives when pod shutdown starts.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 24 16:04:22 UTC 2024 - 9K bytes - Viewed (0) -
src/runtime/os_aix.go
) if pthread_attr_init(&attr) != 0 { writeErrStr(failthreadcreate) exit(1) } if pthread_attr_setstacksize(&attr, threadStackSize) != 0 { writeErrStr(failthreadcreate) exit(1) } if pthread_attr_setdetachstate(&attr, _PTHREAD_CREATE_DETACHED) != 0 { writeErrStr(failthreadcreate) exit(1) } // Disable signals during create, so that the new thread starts
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.9K bytes - Viewed (0)