- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for exit (0.18 sec)
-
cmd/signals.go
) func handleSignals() { // Custom exit function exit := func(success bool) { if globalLoggerOutput != nil { globalLoggerOutput.Close() } // If global profiler is set stop before we exit. globalProfilerMu.Lock() defer globalProfilerMu.Unlock() for _, p := range globalProfiler { p.Stop() } if success { os.Exit(0) } os.Exit(1) } stopProcess := func() bool {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 17:57:52 GMT 2024 - 2.8K bytes - Viewed (0) -
cmd/main.go
func Main(args []string) { // Set the minio app name. appName := filepath.Base(args[0]) if env.Get("_MINIO_DEBUG_NO_EXIT", "") != "" { freeze := func(_ int) { // Infinite blocking op <-make(chan struct{}) } // Override the logger os.Exit() logger.ExitFunc = freeze defer func() { if err := recover(); err != nil { fmt.Println("panic:", err) fmt.Println("")
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 17:57:52 GMT 2024 - 6.4K bytes - Viewed (0) -
internal/logger/console.go
) // ConsoleLoggerTgt is a stringified value to represent console logging const ConsoleLoggerTgt = "console+http" // ExitFunc is called by Fatal() class functions, by default it calls os.Exit() var ExitFunc = os.Exit // Logger interface describes the methods that need to be implemented to satisfy the interface requirements. type Logger interface { json(msg string, args ...interface{}) quiet(msg string, args ...interface{})
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 17:57:52 GMT 2024 - 5.8K bytes - Viewed (0) -
cmd/metacache-set.go
defer ticker.Stop() var exit bool for !exit { select { case <-ticker.C: case <-ctx.Done(): exit = true } metaMu.Lock() meta := *mc.meta meta, err = o.updateMetacacheListing(meta, rpc) if err == nil && time.Since(meta.lastHandout) > metacacheMaxClientWait { cancel() exit = true meta.status = scanStateError
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed May 01 17:59:08 GMT 2024 - 30.4K bytes - Viewed (0) -
cni/pkg/cmd/root.go
"The expected termination message for the init container when crash-looping because of CNI misconfiguration") registerIntegerParameter(constants.RepairInitExitCode, iptables.ValidationErrorCode, "Expected exit code for the init container when crash-looping because of CNI misconfiguration") registerStringParameter(constants.RepairLabelSelectors, "", "A set of label selectors in label=value format that will be added to the pod list filters")
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 12.5K bytes - Viewed (0) -
cni/cmd/istio-cni/main.go
"github.com/containernetworking/cni/pkg/version" "istio.io/istio/cni/pkg/plugin" "istio.io/istio/pkg/log" istioversion "istio.io/istio/pkg/version" ) func main() { if err := runPlugin(); err != nil { os.Exit(1) } } func runPlugin() error { if err := log.Configure(plugin.GetLoggingOptions("")); err != nil { return err } defer func() { // Log sync will send logs to install-cni container via UDS.
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 13:56:46 GMT 2024 - 1.9K bytes - Viewed (0) -
cni/pkg/constants/constants.go
RepairSidecarAnnotation = "repair-sidecar-annotation" RepairInitContainerName = "repair-init-container-name" RepairInitTerminationMsg = "repair-init-container-termination-message" RepairInitExitCode = "repair-init-container-exit-code" RepairLabelSelectors = "repair-label-selectors" RepairFieldSelectors = "repair-field-selectors" ) // Internal constants const ( DefaultKubeconfigMode = 0o600 CNIAddEventPath = "/cmdadd"
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 2.7K bytes - Viewed (0) -
cni/pkg/config/config.go
DeletePods bool // Whether to label broken pods LabelPods bool // Filters for race repair, including name of sidecar annotation, name of init container, // init container termination message and exit code. SidecarAnnotation string InitContainerName string InitTerminationMsg string InitExitCode int // Label and field selectors to select pods managed by race repair. LabelSelectors string
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 5.5K bytes - Viewed (0) -
cmd/common-main.go
fmt.Println("Refer to the docs here on how to run it as a Windows Service https://github.com/minio/minio-service/tree/master/windows") fmt.Println("Press the Enter Key to Exit") fmt.Scanln() os.Exit(1) } } logger.Init(GOPATH, GOROOT) logger.RegisterError(config.FmtError) globalBatchJobsMetrics = batchJobMetrics{metrics: make(map[string]*batchJobInfo)}
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 35.8K bytes - Viewed (2) -
internal/grid/grid_test.go
return case <-c: buf := make([]byte, 1<<20) stacklen := runtime.Stack(buf, true) fmt.Printf("=== Timeout, assuming deadlock ===\n*** goroutine dump...\n%s\n*** end\n", string(buf[:stacklen])) os.Exit(2) } }() return func() { close(cc) } } func assertNoActive(t *testing.T, c *Connection) { t.Helper() // Tiny bit racy for tests, but we try to play nice.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Apr 30 15:03:35 GMT 2024 - 30.1K bytes - Viewed (0)