Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,044 for exit2 (0.05 sec)

  1. src/cmd/compile/internal/ssa/regalloc_test.go

    			Eq("a", "loop2", "exit1"),
    		),
    		Bloc("loop2",
    			Eq("a", "loop1", "exit2"),
    		),
    		Bloc("exit1",
    			// store before call, y is available in a register
    			Valu("mem2", OpAMD64MOVQstore, types.TypeMem, 0, nil, "p", "y", "mem"),
    			Valu("mem3", OpAMD64CALLstatic, types.TypeMem, 0, AuxCallLSym("_"), "mem2"),
    			Exit("mem3"),
    		),
    		Bloc("exit2",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. cmd/kubeadm/app/util/error.go

    	// ErrExit is an error returned when kubeadm is about to exit
    	ErrExit = errors.New("exit")
    )
    
    // fatal prints the message if set and then exits.
    func fatal(msg string, code int) {
    	if len(msg) > 0 {
    		// add newline if needed
    		if !strings.HasSuffix(msg, "\n") {
    			msg += "\n"
    		}
    
    		fmt.Fprint(os.Stderr, msg)
    	}
    	os.Exit(code)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. src/runtime/os_plan9.go

    func minit() {
    	if atomic.Load(&exiting) != 0 {
    		exits(&emptystatus[0])
    	}
    	// Mask all SSE floating-point exceptions
    	// when running on the 64-bit kernel.
    	setfpmasks()
    }
    
    // Called from dropm to undo the effect of an minit.
    func unminit() {
    }
    
    // Called from exitm, but not from drop, to undo the effect of thread-owned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/os/exec/exec_test.go

    			t.Errorf("from exit 42 got exit %q, want %q", s, want)
    		}
    	} else {
    		t.Fatalf("expected *exec.ExitError from exit 42; got %T: %v", err, err)
    	}
    }
    
    func TestExitCode(t *testing.T) {
    	t.Parallel()
    
    	// Test that exit code are returned correctly
    	cmd := helperCommand(t, "exit", "42")
    	cmd.Run()
    	want := 42
    	if runtime.GOOS == "plan9" {
    		want = 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  9. 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)
  10. guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class UncaughtExceptionHandlers {
      private UncaughtExceptionHandlers() {}
    
      /**
       * Returns an exception handler that exits the system. This is particularly useful for the main
       * thread, which may start up other, non-daemon threads, but fail to fully initialize the
       * application successfully.
       *
       * <p>Example usage:
       *
       * <pre>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top