Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for Pid (0.02 sec)

  1. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

                    System.out.println("Killing Gradle process with PID " + pid + ": " + line);
                    pkill(pid);
                });
            } else {
                forEachLeakingJavaProcess(rootProjectDir, (pid, line) -> {
                    System.out.println("A process wasn't shutdown properly in a previous Gradle run. Killing process with PID " + pid + ": " + line);
                    pkill(pid);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/container_manager_linux.go

    	}
    }
    
    func isProcessRunningInHost(pid int) (bool, error) {
    	// Get init pid namespace.
    	initPidNs, err := os.Readlink("/proc/1/ns/pid")
    	if err != nil {
    		return false, fmt.Errorf("failed to find pid namespace of init process")
    	}
    	klog.V(10).InfoS("Found init PID namespace", "namespace", initPidNs)
    	processPidNs, err := os.Readlink(fmt.Sprintf("/proc/%d/ns/pid", pid))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  3. src/syscall/exec_linux.go

    		// Signal self if parent is already dead. This might cause a
    		// duplicate signal in rare cases, but it won't matter when
    		// using SIGKILL.
    		pid, _ = rawSyscallNoError(SYS_GETPPID, 0, 0, 0)
    		if pid != ppid {
    			pid, _ = rawSyscallNoError(SYS_GETPID, 0, 0, 0)
    			_, _, err1 = RawSyscall(SYS_KILL, pid, uintptr(sys.Pdeathsig), 0)
    			if err1 != 0 {
    				goto childerror
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  4. src/os/exec.go

    	// It is unused on other GOOSes.
    	handle uintptr
    }
    
    func newPIDProcess(pid int) *Process {
    	p := &Process{
    		Pid:  pid,
    		mode: modePID,
    	}
    	runtime.SetFinalizer(p, (*Process).Release)
    	return p
    }
    
    func newHandleProcess(pid int, handle uintptr) *Process {
    	p := &Process{
    		Pid:    pid,
    		mode:   modeHandle,
    		handle: handle,
    	}
    	p.state.Store(1) // 1 persistent reference
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. src/syscall/syscall_linux.go

    func PtraceCont(pid int, signal int) (err error) {
    	return ptrace(PTRACE_CONT, pid, 0, uintptr(signal))
    }
    
    func PtraceSyscall(pid int, signal int) (err error) {
    	return ptrace(PTRACE_SYSCALL, pid, 0, uintptr(signal))
    }
    
    func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) }
    
    func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. src/syscall/syscall_aix.go

    }
    
    func PtracePokeText(pid int, addr uintptr, data []byte) (count int, err error) {
    	return ptracePoke(pid, addr, data)
    }
    
    func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
    	return ptracePoke(pid, addr, data)
    }
    
    func PtraceCont(pid int, signal int) (err error) {
    	return ptrace64(PT_CONTINUE, int64(pid), 1, signal, 0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. pkg/kubelet/pleg/generic.go

    func computeEvents(oldPod, newPod *kubecontainer.Pod, cid *kubecontainer.ContainerID) []*PodLifecycleEvent {
    	var pid types.UID
    	if oldPod != nil {
    		pid = oldPod.ID
    	} else if newPod != nil {
    		pid = newPod.ID
    	}
    	oldState := getContainerState(oldPod, cid)
    	newState := getContainerState(newPod, cid)
    	return generateEvents(pid, cid.ID, oldState, newState)
    }
    
    func (g *GenericPLEG) cacheEnabled() bool {
    	return g.cache != nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  8. src/syscall/syscall_darwin.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    func PtraceAttach(pid int) (err error) { return ptrace(PT_ATTACH, pid, 0, 0) }
    func PtraceDetach(pid int) (err error) { return ptrace(PT_DETACH, pid, 0, 0) }
    
    //sysnb pipe(p *[2]int32) (err error)
    
    func Pipe(p []int) (err error) {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var q [2]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/syscall/syscall_linux_test.go

    func compareStatus(filter, expect string) error {
    	expected := filter + expect
    	pid := syscall.Getpid()
    	fs, err := os.ReadDir(fmt.Sprintf("/proc/%d/task", pid))
    	if err != nil {
    		return fmt.Errorf("unable to find %d tasks: %v", pid, err)
    	}
    	expectedProc := fmt.Sprintf("Pid:\t%d", pid)
    	foundAThread := false
    	for _, f := range fs {
    		tf := fmt.Sprintf("/proc/%s/status", f.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. src/runtime/os_plan9.go

    	if len(s) < len(prefix) {
    		return false
    	}
    	for i, p := range prefix {
    		if s[i] != p {
    			return false
    		}
    	}
    	return true
    }
    
    var pid = []byte("#c/pid\x00")
    
    func getpid() uint64 {
    	var b [20]byte
    	fd := open(&pid[0], 0, 0)
    	if fd >= 0 {
    		read(fd, unsafe.Pointer(&b), int32(len(b)))
    		closefd(fd)
    	}
    	c := b[:]
    	for c[0] == ' ' || c[0] == '\t' {
    		c = c[1:]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top