Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for exit1 (0.56 sec)

  1. 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)
  2. hack/local-up-cluster.sh

                if [ "${GO_OUT}" == "" ]; then
                    echo "Could not guess the correct output directory to use."
                    exit 1
                fi
                ;;
            h)
                usage
                exit
                ;;
            ?)
                usage
                exit
                ;;
        esac
    done
    
    if [ -z "${GO_OUT}" ]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 25 02:33:52 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/testing/testing.go

    // directly. TestMain runs in the main goroutine and can do whatever setup
    // and teardown is necessary around a call to m.Run. m.Run will return an exit
    // code that may be passed to os.Exit. If TestMain returns, the test wrapper
    // will pass the result of m.Run to os.Exit itself.
    //
    // When TestMain is called, flag.Parse has not been run. If TestMain depends on
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/elf.go

    	if hex.DecodedLen(len(val)) > maxLen {
    		Exitf("-B option too long (max %d digits): %s", maxLen, ov)
    	}
    
    	b, err := hex.DecodeString(val)
    	if err != nil {
    		if err == hex.ErrLength {
    			Exitf("-B argument must have even number of digits: %s", ov)
    		}
    		if inv, ok := err.(hex.InvalidByteError); ok {
    			Exitf("-B argument contains invalid hex digit %c: %s", byte(inv), ov)
    		}
    		Exitf("-B argument contains invalid hex: %s", ov)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/test/test.go

    		// actually print that if it panics, exits, or terminates abnormally,
    		// so we print it here. We can't always check whether it was printed
    		// because some tests need stdout to be a terminal (golang.org/issue/34791),
    		// not a pipe.
    		// TODO(golang.org/issue/29062): tests that exit with status 0 without
    		// printing a final result should fail.
    		prefix := ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. src/cmd/go/go_test.go

    		gotool, err := testenv.GoTool()
    		if err != nil {
    			fmt.Fprintln(os.Stderr, "locating go tool: ", err)
    			os.Exit(2)
    		}
    
    		goEnv := func(name string) string {
    			out, err := exec.Command(gotool, "env", name).CombinedOutput()
    			if err != nil {
    				fmt.Fprintf(os.Stderr, "go env %s: %v\n%s", name, err, out)
    				os.Exit(2)
    			}
    			return strings.TrimSpace(string(out))
    		}
    		testGOROOT = goEnv("GOROOT")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  7. src/runtime/mgc.go

    	// we have not yet started cycle number gcTrigger.n (relative
    	// to work.cycles).
    	gcTriggerCycle
    )
    
    // test reports whether the trigger condition is satisfied, meaning
    // that the exit condition for the _GCoff phase has been met. The exit
    // condition should be tested when allocating.
    func (t gcTrigger) test() bool {
    	if !memstats.enablegc || panicking.Load() != 0 || gcphase != _GCoff {
    		return false
    	}
    	switch t.kind {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  8. cmd/kubelet/app/server.go

    	kubeletFlags := options.NewKubeletFlags()
    
    	kubeletConfig, err := options.NewKubeletConfiguration()
    	// programmer error
    	if err != nil {
    		klog.ErrorS(err, "Failed to create a new kubelet configuration")
    		os.Exit(1)
    	}
    
    	cmd := &cobra.Command{
    		Use: componentKubelet,
    		Long: `The kubelet is the primary "node agent" that runs on each
    node. It can register the node with the apiserver using one of: the hostname; a flag to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:34 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  9. src/os/os_test.go

    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    func TestMain(m *testing.M) {
    	if Getenv("GO_OS_TEST_DRAIN_STDIN") == "1" {
    		Stdout.Close()
    		io.Copy(io.Discard, Stdin)
    		Exit(0)
    	}
    
    	log.SetFlags(log.LstdFlags | log.Lshortfile)
    
    	Exit(m.Run())
    }
    
    var dot = []string{
    	"dir_unix.go",
    	"env.go",
    	"error.go",
    	"file.go",
    	"os_test.go",
    	"types.go",
    	"stat_darwin.go",
    	"stat_linux.go",
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  10. src/net/http/fs_test.go

    	if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" {
    		return
    	}
    	defer os.Exit(0)
    	fd3 := os.NewFile(3, "ephemeral-port-listener")
    	ln, err := net.FileListener(fd3)
    	if err != nil {
    		panic(err)
    	}
    	mux := NewServeMux()
    	mux.Handle("/", FileServer(Dir(os.TempDir())))
    	mux.HandleFunc("/quit", func(ResponseWriter, *Request) {
    		os.Exit(0)
    	})
    	s := &Server{Handler: mux}
    	err = s.Serve(ln)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
Back to top