- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 59 for pidStatus (0.12 sec)
-
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) -
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) -
pkg/kubelet/pleg/evented_test.go
kubelet_running_pods 5 ` testMetric(t, expectedMetric, metrics.RunningPodCount.FQName()) // stop sandbox containers for first 2 pods for _, podStatus := range podStatuses[:2] { podId := string(podStatus.ID) newPodStatus := kubecontainer.PodStatus{ ID: podStatus.ID, SandboxStatuses: []*v1.PodSandboxStatus{ {Id: podId}, }, ContainerStatuses: []*kubecontainer.Status{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 01 07:45:05 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/util/pod/pod_test.go
description string mutate func(input v1.PodStatus) v1.PodStatus expectUnchanged bool expectedPatchBytes []byte }{ { "no change", func(input v1.PodStatus) v1.PodStatus { return input }, true, []byte(fmt.Sprintf(`{"metadata":{"uid":"myuid"}}`)), }, { "message change", func(input v1.PodStatus) v1.PodStatus { input.Message = "random message" return input },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 15:22:29 UTC 2022 - 4.5K bytes - Viewed (0) -
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) -
pkg/kubelet/pod_container_deletor.go
func getContainersToDeleteInPod(filterContainerID string, podStatus *kubecontainer.PodStatus, containersToKeep int) containerStatusbyCreatedList { matchedContainer := func(filterContainerId string, podStatus *kubecontainer.PodStatus) *kubecontainer.Status { if filterContainerId == "" { return nil } for _, containerStatus := range podStatus.ContainerStatuses { if containerStatus.ID.ID == filterContainerId {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 4K bytes - Viewed (0) -
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) -
pkg/kubelet/prober/testing/fake_manager.go
// Start simulates start syncing the probe status func (FakeManager) Start() {} // UpdatePodStatus simulates updating the Pod Status. func (FakeManager) UpdatePodStatus(_ *v1.Pod, podStatus *v1.PodStatus) { for i := range podStatus.ContainerStatuses { podStatus.ContainerStatuses[i].Ready = true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:12 UTC 2023 - 1.4K bytes - Viewed (0) -
pkg/controller/job/pod_failure_policy.go
func matchOnExitCodes(podStatus *v1.PodStatus, requirement *batch.PodFailurePolicyOnExitCodesRequirement) *v1.ContainerStatus { if containerStatus := getMatchingContainerFromList(podStatus.ContainerStatuses, requirement); containerStatus != nil { return containerStatus } return getMatchingContainerFromList(podStatus.InitContainerStatuses, requirement) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 20:44:11 UTC 2023 - 5.5K bytes - Viewed (0) -
pkg/kubelet/container/testing/fake_cache.go
} func (c *fakeCache) Get(id types.UID) (*container.PodStatus, error) { return c.runtime.GetPodStatus(context.Background(), id, "", "") } func (c *fakeCache) GetNewerThan(id types.UID, minTime time.Time) (*container.PodStatus, error) { return c.Get(id) } func (c *fakeCache) Set(id types.UID, status *container.PodStatus, err error, timestamp time.Time) (updated bool) { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 14:36:16 UTC 2022 - 1.3K bytes - Viewed (0)