Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 68 for exit_node (0.21 sec)

  1. src/cmd/nm/nm.go

    	filePrefix = len(args) > 1
    	if len(args) == 0 {
    		flag.Usage()
    	}
    
    	for _, file := range args {
    		nm(file)
    	}
    
    	os.Exit(exitCode)
    }
    
    var exitCode = 0
    
    func errorf(format string, args ...any) {
    	log.Printf(format, args...)
    	exitCode = 1
    }
    
    func nm(file string) {
    	f, err := objfile.Open(file)
    	if err != nil {
    		errorf("%v", err)
    		return
    	}
    	defer f.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. pkg/kubelet/status/status_manager_test.go

    		{Name: "init-test-1"},
    		{Name: "init-test-2", State: v1.ContainerState{Terminated: &v1.ContainerStateTerminated{Reason: "InitTest", ExitCode: 0}}},
    		{Name: "init-test-3", State: v1.ContainerState{Terminated: &v1.ContainerStateTerminated{Reason: "InitTest", ExitCode: 3}}},
    		// TODO: If the last init container had failed, the pod would not have been
    		// able to start any containers. Maybe, we have to separate this test case
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  3. src/os/exec/exec_test.go

    		want = 1
    	}
    	got := cmd.ProcessState.ExitCode()
    	if want != got {
    		t.Errorf("ExitCode got %d, want %d", got, want)
    	}
    
    	cmd = helperCommand(t, "/no-exist-executable")
    	cmd.Run()
    	want = 2
    	if runtime.GOOS == "plan9" {
    		want = 1
    	}
    	got = cmd.ProcessState.ExitCode()
    	if want != got {
    		t.Errorf("ExitCode got %d, want %d", got, want)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  4. src/os/exec_plan9.go

    }
    
    func (p *ProcessState) String() string {
    	if p == nil {
    		return "<nil>"
    	}
    	return "exit status: " + p.status.Msg
    }
    
    // ExitCode returns the exit code of the exited process, or -1
    // if the process hasn't exited or was terminated by a signal.
    func (p *ProcessState) ExitCode() int {
    	// return -1 if the process hasn't started.
    	if p == nil {
    		return -1
    	}
    	return p.status.ExitStatus()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_test.go

    					Name:     "without-reason",
    					State:    kubecontainer.ContainerStateExited,
    					ExitCode: 1,
    				},
    				{
    					Name:     "with-reason",
    					State:    kubecontainer.ContainerStateExited,
    					ExitCode: 2,
    				},
    				{
    					Name:     "without-reason",
    					State:    kubecontainer.ContainerStateExited,
    					ExitCode: 3,
    				},
    				{
    					Name:     "with-reason",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.Pod.json

                "message": "messageValue"
              },
              "running": {
                "startedAt": "2001-01-01T01:01:01Z"
              },
              "terminated": {
                "exitCode": 1,
                "signal": 2,
                "reason": "reasonValue",
                "message": "messageValue",
                "startedAt": "2005-01-01T01:01:01Z",
                "finishedAt": "2006-01-01T01:01:01Z",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 52K bytes
    - Viewed (0)
  7. src/os/exec_posix.go

    	case status.Continued():
    		res = "continued"
    	}
    	if status.CoreDump() {
    		res += " (core dumped)"
    	}
    	return res
    }
    
    // ExitCode returns the exit code of the exited process, or -1
    // if the process hasn't exited or was terminated by a signal.
    func (p *ProcessState) ExitCode() int {
    	// return -1 if the process hasn't started.
    	if p == nil {
    		return -1
    	}
    	return p.status.ExitStatus()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/core.v1.Pod.yaml

        image: imageValue
        imageID: imageIDValue
        lastState:
          running:
            startedAt: "2001-01-01T01:01:01Z"
          terminated:
            containerID: containerIDValue
            exitCode: 1
            finishedAt: "2006-01-01T01:01:01Z"
            message: messageValue
            reason: reasonValue
            signal: 2
            startedAt: "2005-01-01T01:01:01Z"
          waiting:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.yaml

        image: imageValue
        imageID: imageIDValue
        lastState:
          running:
            startedAt: "2001-01-01T01:01:01Z"
          terminated:
            containerID: containerIDValue
            exitCode: 1
            finishedAt: "2006-01-01T01:01:01Z"
            message: messageValue
            reason: reasonValue
            signal: 2
            startedAt: "2005-01-01T01:01:01Z"
          waiting:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/core.v1.Pod.json

                "message": "messageValue"
              },
              "running": {
                "startedAt": "2001-01-01T01:01:01Z"
              },
              "terminated": {
                "exitCode": 1,
                "signal": 2,
                "reason": "reasonValue",
                "message": "messageValue",
                "startedAt": "2005-01-01T01:01:01Z",
                "finishedAt": "2006-01-01T01:01:01Z",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 52.6K bytes
    - Viewed (0)
Back to top