Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 146 for pidStatus (0.17 sec)

  1. src/os/exec_plan9.go

    	if e != nil {
    		return e
    	}
    	defer f.Close()
    	_, e = f.Write([]byte(data))
    	return e
    }
    
    func (p *Process) signal(sig Signal) error {
    	switch p.pidStatus() {
    	case statusDone:
    		return ErrProcessDone
    	case statusReleased:
    		return syscall.ENOENT
    	}
    
    	if e := p.writeProcFile("note", sig.String()); e != nil {
    		return NewSyscallError("signal", e)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/os/exec_unix.go

    	// completes its wait.
    	//
    	// Checking for statusDone here would not be a complete fix, as the PID
    	// could still be waited on and reused prior to blockUntilWaitable.
    	switch p.pidStatus() {
    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    
    	// If we can block until Wait4 will succeed immediately, do so.
    	ready, err := p.blockUntilWaitable()
    	if err != nil {
    		return nil, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/os/exec.go

    		if !p.state.CompareAndSwap(refs, new) {
    			continue
    		}
    		if new&^processStatusMask == 0 {
    			p.closeHandle()
    		}
    		return status
    	}
    }
    
    func (p *Process) pidStatus() processStatus {
    	if p.mode != modePID {
    		panic("pidStatus called in invalid mode")
    	}
    
    	return processStatus(p.state.Load())
    }
    
    func (p *Process) pidDeactivate(reason processStatus) {
    	if p.mode != modePID {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podstatus.go

    	ResourceClaimStatuses      []PodResourceClaimStatusApplyConfiguration `json:"resourceClaimStatuses,omitempty"`
    }
    
    // PodStatusApplyConfiguration constructs an declarative configuration of the PodStatus type for use with
    // apply.
    func PodStatus() *PodStatusApplyConfiguration {
    	return &PodStatusApplyConfiguration{}
    }
    
    // WithPhase sets the Phase field in the declarative configuration to the given value
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:43:16 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  5. pkg/kubelet/status/status_manager_test.go

    		oldPodStatus                  func(input v1.PodStatus) v1.PodStatus
    		newPodStatus                  func(input v1.PodStatus) v1.PodStatus
    		expectPodStatus               v1.PodStatus
    	}{
    		{
    			"no change",
    			false,
    			false,
    			func(input v1.PodStatus) v1.PodStatus { return input },
    			func(input v1.PodStatus) v1.PodStatus { return input },
    			getPodStatus(),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  6. pkg/kubelet/container/cache.go

    // and the blocking GetNewerThan() method. The component responsible for
    // populating the cache is expected to call Delete() to explicitly free the
    // cache entries.
    type Cache interface {
    	Get(types.UID) (*PodStatus, error)
    	// Set updates the cache by setting the PodStatus for the pod only
    	// if the data is newer than the cache based on the provided
    	// time stamp. Returns if the cache was updated.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 07:37:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. pkg/controller/job/pod_failure_policy_test.go

    							Operator: batch.PodFailurePolicyOnExitCodesOpIn,
    							Values:   []int32{2, 3},
    						},
    					},
    				},
    			},
    			failedPod: &v1.Pod{
    				ObjectMeta: validPodObjectMeta,
    				Status: v1.PodStatus{
    					Phase: v1.PodFailed,
    					ContainerStatuses: []v1.ContainerStatus{
    						{
    							Name: "main-container",
    							State: v1.ContainerState{
    								Terminated: &v1.ContainerStateTerminated{
    									ExitCode: 2,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. pkg/kubelet/pleg/evented.go

    func (e *EventedPLEG) updateRunningPodMetric(podStatus *kubecontainer.PodStatus) {
    	cachedPodStatus, err := e.cache.Get(podStatus.ID)
    	if err != nil {
    		klog.ErrorS(err, "Evented PLEG: Get cache", "podID", podStatus.ID)
    	}
    	// cache miss condition: The pod status object will have empty state if missed in cache
    	if len(cachedPodStatus.SandboxStatuses) < 1 {
    		sandboxState := getPodSandboxState(podStatus)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 10:46:06 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	makeAndSetFakePod(t, m, fakeRuntime, pod)
    
    	podStatus, err := m.GetPodStatus(ctx, pod.UID, pod.Name, pod.Namespace)
    	assert.NoError(t, err)
    	assert.Equal(t, pod.UID, podStatus.ID)
    	assert.Equal(t, pod.Name, podStatus.Name)
    	assert.Equal(t, pod.Namespace, podStatus.Namespace)
    	assert.Equal(t, apitest.FakePodSandboxIPs, podStatus.IPs)
    }
    
    func TestStopContainerWithNotFoundError(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/util/util_test.go

    	for desc, test := range map[string]struct {
    		pod               *v1.Pod
    		status            *kubecontainer.PodStatus
    		expectedChanged   bool
    		expectedAttempt   uint32
    		expectedSandboxID string
    	}{
    		"Pod with no existing sandboxes": {
    			pod:               &v1.Pod{},
    			status:            &kubecontainer.PodStatus{},
    			expectedChanged:   true,
    			expectedAttempt:   0,
    			expectedSandboxID: "",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top