- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for findProcess (0.27 sec)
-
src/os/exec.go
// Getppid returns the process id of the caller's parent. func Getppid() int { return syscall.Getppid() } // FindProcess looks for a running process by its pid. // // The [Process] it returns can be used to obtain information // about the underlying operating system process. // // On Unix systems, FindProcess always succeeds and returns a Process // for the given pid, regardless of whether the process exists. To test whether
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/kubelet/cm/pod_container_manager_linux.go
} // Kill one process ID func (m *podContainerManagerImpl) killOnePid(pid int) error { // os.FindProcess never returns an error on POSIX // https://go-review.googlesource.com/c/go/+/19093 p, _ := os.FindProcess(pid) if err := p.Kill(); err != nil { // If the process already exited, that's fine. if errors.Is(err, os.ErrProcessDone) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 16:38:36 UTC 2023 - 12.5K bytes - Viewed (0) -
src/os/signal/signal_cgo_test.go
if err != nil { t.Fatalf("error reading child pid: %v\n", err) } if n != 8 { t.Fatalf("unexpected short read n = %d\n", n) } pid := binary.LittleEndian.Uint64(b[:]) process, err := os.FindProcess(int(pid)) if err != nil { t.Fatalf("unable to find child process: %v", err) } // Wait for the third child to write a byte indicating that it is // entering the read. b = make([]byte, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 10:09:15 UTC 2024 - 10.7K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server.go
return } _, err = w.Write(b) if err != nil { w.WriteHeader(http.StatusInternalServerError) } } // notifyExit sends SIGTERM to itself func notifyExit() { p, err := os.FindProcess(os.Getpid()) if err != nil { log.Error(err) } if err := p.Signal(syscall.SIGTERM); err != nil { log.Errorf("failed to send SIGTERM to self: %v", err) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 31.1K bytes - Viewed (1)