Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy

    
    class ProcessFixture {
        final Long pid;
    
        ProcessFixture(Long pid) {
            this.pid = pid
        }
    
        /**
         * Forcefully kills this daemon.
         */
        void kill(boolean killTree) {
            println "Killing process with pid: $pid"
            if (pid == null) {
                throw new RuntimeException("Unable to force kill the process because provided pid is null!")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/launcher/daemon/diagnostics/DaemonDiagnostics.java

        @Nullable
        private final Long pid;
        private final File daemonLog;
        private final static int TAIL_SIZE = 20;
    
        public DaemonDiagnostics(File daemonLog, @Nullable Long pid) {
            this.daemonLog = daemonLog;
            this.pid = pid;
        }
    
        /**
         * @return pid. Can be null, it means the daemon was not able to identify its pid.
         */
        public @Nullable Long getPid() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go

    func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error {
    	return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
    }
    
    // PtraceSetRegsMipsle sets the registers used by mipsle binaries.
    func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error {
    	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/affinity_linux.go

    func schedAffinity(trap uintptr, pid int, set *CPUSet) error {
    	_, _, e := RawSyscall(trap, uintptr(pid), uintptr(unsafe.Sizeof(*set)), uintptr(unsafe.Pointer(set)))
    	if e != 0 {
    		return errnoErr(e)
    	}
    	return nil
    }
    
    // SchedGetaffinity gets the CPU affinity mask of the thread specified by pid.
    // If pid is 0 the calling thread is used.
    func SchedGetaffinity(pid int, set *CPUSet) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 19 21:26:10 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  5. src/os/exec_unix.go

    	}
    
    	return convertESRCH(syscall.Kill(p.Pid, s))
    }
    
    func convertESRCH(err error) error {
    	if err == syscall.ESRCH {
    		return ErrProcessDone
    	}
    	return err
    }
    
    func (p *Process) release() error {
    	// We clear the Pid field only for API compatibility. On Unix, Release
    	// has always set Pid to -1. Internally, the implementation relies
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. pkg/bootstrap/platform/gcp_test.go

    				GCPProject: "pid", GCPProjectNumber: "npid", GCPLocation: "location", GCPCluster: "cluster", GCEInstance: "instanceName",
    				GCEInstanceID: "instance", GCEInstanceCreatedBy: "createdBy",
    				GCPClusterURL: "https://container.googleapis.com/v1/projects/pid/locations/location/clusters/cluster",
    			},
    		},
    		{
    			"instance created by error",
    			func() bool { return true },
    			func() (string, error) { return "pid", nil },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 00:37:33 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  7. pkg/util/oom/oom_linux.go

    }
    
    // Writes 'value' to /proc/<pid>/oom_score_adj. PID = 0 means self
    // Returns os.ErrNotExist if the `pid` does not exist.
    func applyOOMScoreAdj(pid int, oomScoreAdj int) error {
    	if pid < 0 {
    		return fmt.Errorf("invalid PID %d specified for oom_score_adj", pid)
    	}
    
    	var pidStr string
    	if pid == 0 {
    		pidStr = "self"
    	} else {
    		pidStr = strconv.Itoa(pid)
    	}
    
    	maxTries := 2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go

    }
    
    // PtraceGetRegsArm fetches the registers used by arm binaries.
    func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
    	return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
    }
    
    // PtraceSetRegsArm sets the registers used by arm binaries.
    func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
    	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
    }
    
    // PtraceRegsArm64 is the registers used by arm64 binaries.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/os/exec_plan9.go

    		return nil, ErrInvalid
    	}
    
    	err = syscall.WaitProcess(p.Pid, &waitmsg)
    	if err != nil {
    		return nil, NewSyscallError("wait", err)
    	}
    
    	p.pidDeactivate(statusDone)
    	ps = &ProcessState{
    		pid:    waitmsg.Pid,
    		status: &waitmsg,
    	}
    	return ps, nil
    }
    
    func (p *Process) release() error {
    	p.Pid = -1
    
    	// Just mark the PID unusable.
    	p.pidDeactivate(statusReleased)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jna/UnsupportedEnvironment.java

        private static final Logger LOGGER = LoggerFactory.getLogger(UnsupportedEnvironment.class);
    
        private final Long pid;
    
        public UnsupportedEnvironment() {
            pid = extractPIDFromRuntimeMXBeanName();
        }
    
        /**
         * The default format of the name of the Runtime MX bean is PID@HOSTNAME.
         * The PID is parsed assuming that is the format.
         *
         * This works on Solaris and should work with any Java VM
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top