Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 158 for Pid (0.03 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/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)
  4. 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)
  5. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/protocol/DaemonStatusAndErrorReportingTest.groovy

        def "PID can be null"() {
            given:
            def daemonContext = new DefaultDaemonContext(null, null, null, null, null, null, null, false, NativeServicesMode.ENABLED, null)
    
            when:
            def pid = daemonContext.pid;
    
            then:
            noExceptionThrown()
            pid == null
        }
    
        def "PID unboxing should not happen in Status"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DefaultDaemonContext.java

                encoder.writeSmallInt(context.javaVersion.asInt());
                encoder.writeString(context.daemonRegistryDir.getPath());
                encoder.writeBoolean(context.pid != null);
                if (context.pid != null) {
                    encoder.writeLong(context.pid);
                }
                encoder.writeBoolean(context.idleTimeout != null);
                if (context.idleTimeout != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. 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)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvent.java

        @Nullable
        private final Long pid;
        @Nullable
        private final DaemonExpirationStatus status;
        @Nullable
        private final String reason;
    
        public DaemonStopEvent(Date timestamp, @Nullable Long pid, @Nullable DaemonExpirationStatus status, @Nullable String reason) {
            this.timestamp = timestamp;
            this.status = status;
            this.reason = reason;
            this.pid = pid;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. 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)
  10. src/sync/pool.go

    	l := p.local                              // load-consume
    	if uintptr(pid) < s {
    		return indexLocal(l, pid), pid
    	}
    	return p.pinSlow()
    }
    
    func (p *Pool) pinSlow() (*poolLocal, int) {
    	// Retry under the mutex.
    	// Can not lock the mutex while pinned.
    	runtime_procUnpin()
    	allPoolsMu.Lock()
    	defer allPoolsMu.Unlock()
    	pid := runtime_procPin()
    	// poolCleanup won't be called while we are pinned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top