Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,034 for exit2 (0.05 sec)

  1. src/os/signal/doc.go

    program to simply exit by pressing ^C, and you can cause it to exit
    with a stack dump by pressing ^\.
    
    # Default behavior of signals in Go programs
    
    By default, a synchronous signal is converted into a run-time panic. A
    SIGHUP, SIGINT, or SIGTERM signal causes the program to exit. A
    SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGSTKFLT, SIGEMT, or SIGSYS signal
    causes the program to exit with a stack dump. A SIGTSTP, SIGTTIN, or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:11:00 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/coro.go

    func corostart() {
    	gp := getg()
    	c := gp.coroarg
    	gp.coroarg = nil
    
    	defer coroexit(c)
    	c.f(c)
    }
    
    // coroexit is like coroswitch but closes the coro
    // and exits the current goroutine
    func coroexit(c *coro) {
    	gp := getg()
    	gp.coroarg = c
    	gp.coroexit = true
    	mcall(coroswitch_m)
    }
    
    //go:linkname coroswitch
    
    // coroswitch switches to the goroutine blocked on c
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/continuous/ContinuousBuildActionExecutorTest.groovy

            buildExits(runningBuild)
        }
    
        def "exits if there are no file system inputs"() {
            given:
            continuousBuildEnabled()
    
            when:
            executeBuild()
            then:
            lastLogLine == "{failure}Exiting continuous build as Gradle did not detect any file system inputs.{normal}"
        }
    
        def "exits if Gradle is not watching anything"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/lib.go

    			if err != nil {
    				Exitf("cannot reopen %s: %v", h.pn, err)
    			}
    			defer f.Close()
    			if _, err := f.Seek(h.off, 0); err != nil {
    				Exitf("cannot seek %s: %v", h.pn, err)
    			}
    
    			w, err := os.Create(dst)
    			if err != nil {
    				Exitf("cannot create %s: %v", dst, err)
    			}
    			if _, err := io.CopyN(w, f, h.length); err != nil {
    				Exitf("cannot write %s: %v", dst, err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/fuse_test.go

    	//     entry
    	//     /  \
    	//    z0  z1
    	//     \  /
    	//     exit
    	fun = c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("c", OpArg, c.config.Types.Bool, 0, nil),
    			If("c", "z0", "z1")),
    		Bloc("z0",
    			Goto("exit")),
    		Bloc("z1",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem"),
    		))
    
    	CheckFunc(fun.f)
    	fuseLate(fun.f)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    // prints the executable version and exits 0.
    //
    // If the -V flag already exists — for example, because it was already
    // registered by a call to cmd/internal/objabi.AddVersionFlag — then
    // addVersionFlag does nothing.
    func addVersionFlag() {
    	if flag.Lookup("V") == nil {
    		flag.Var(versionFlag{}, "V", "print version and exit")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. 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 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/internal/runtime/exithook/hooks.go

    )
    
    // Add adds a new exit hook.
    func Add(h Hook) {
    	for !locked.CompareAndSwap(0, 1) {
    		Gosched()
    	}
    	hooks = append(hooks, h)
    	locked.Store(0)
    }
    
    // Run runs the exit hooks.
    //
    // If an exit hook panics, Run will throw with the panic on the stack.
    // If an exit hook invokes exit in the same goroutine, the goroutine will throw.
    // If an exit hook invokes exit in another goroutine, that exit will block.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. src/runtime/signal_windows.go

    				exceptioncode:    gp.sig,
    				numberparameters: 2,
    			}
    			info.exceptioninformation[0] = gp.sigcode0
    			info.exceptioninformation[1] = gp.sigcode1
    		} else {
    			// By default, a failing Go application exits with exit code 2.
    			// Use this value when gp does not contain exception info.
    			info = &exceptionrecord{
    				exceptioncode: 2,
    			}
    		}
    	}
    	const FAIL_FAST_GENERATE_EXCEPTION_ADDRESS = 0x1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/nilcheck_test.go

    			Valu("bool1", OpIsNonNil, c.config.Types.Bool, 0, nil, "ptr1"),
    			If("bool1", "secondCheck", "exit")),
    		Bloc("secondCheck",
    			Valu("bool2", OpIsNonNil, c.config.Types.Bool, 0, nil, "ptr1"),
    			If("bool2", "extra", "exit")),
    		Bloc("extra",
    			Goto("exit")),
    		Bloc("exit",
    			Exit("mem")))
    
    	CheckFunc(fun.f)
    	nilcheckelim(fun.f)
    
    	// clean up the removed nil check
    	fuse(fun.f, fuseTypePlain)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top