Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 503 for Pid (0.02 sec)

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

            this.context = context
            this.registry = registry
        }
    
        void resetToken() {
            def daemonInfo = registry.all.find { it.context.pid == context.pid }
            registry.remove(daemonInfo.address)
            registry.store(new DaemonInfo(daemonInfo.address, daemonInfo.context, "password".bytes, daemonInfo.getState()))
        }
    
        void assertRegistryNotWorldReadable() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. build/build-image/rsyncd.sh

    CONFDIR="/tmp/rsync.k8s"
    PIDFILE="${CONFDIR}/rsyncd.pid"
    CONFFILE="${CONFDIR}/rsyncd.conf"
    SECRETS="${CONFDIR}/rsyncd.secrets"
    
    mkdir -p "${CONFDIR}"
    
    if [[ -f "${PIDFILE}" ]]; then
      PID=$(cat "${PIDFILE}")
      echo "Cleaning up old PID file: ${PIDFILE}"
      kill "${PID}" &> /dev/null || true
      rm "${PIDFILE}"
    fi
    
    PASSWORD=$(</rsyncd.password)
    
    cat <<EOF >"${SECRETS}"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 04 15:58:52 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/issue1435.go

    // specific status files match expectations.
    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: Fri Jul 28 21:31:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. src/os/pidfd_linux.go

    	if !pidfdWorks() {
    		return 0, false
    	}
    
    	return uintptr(*sysAttr.PidFD), true
    }
    
    func pidfdFind(pid int) (uintptr, error) {
    	if !pidfdWorks() {
    		return 0, syscall.ENOSYS
    	}
    
    	h, err := unix.PidFDOpen(pid, 0)
    	if err != nil {
    		return 0, convertESRCH(err)
    	}
    	return h, nil
    }
    
    // _P_PIDFD is used as idtype argument to waitid syscall.
    const _P_PIDFD = 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonContextParser.java

            } else {
                return null;
            }
        }
    
        @Nullable
        private static DaemonContext parseFrom87(String source) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 09:22:54 UTC 2024
    - 5.8K 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. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonStartupCommunication.java

                OutputStream outputStream = new EncodedStream.EncodedOutput(byteArrayOutputStream);
                FlushableEncoder encoder = new OutputStreamBackedEncoder(outputStream);
                encoder.writeNullableString(pid == null ? null : pid.toString());
                encoder.writeString(uid);
                MultiChoiceAddress multiChoiceAddress = (MultiChoiceAddress) address;
                new MultiChoiceAddressSerializer().write(encoder, multiChoiceAddress);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. 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)
  9. src/os/exec_unix_test.go

    	}
    }
    
    // Lookup of a process that does not exist at time of lookup.
    func TestProcessAlreadyDone(t *testing.T) {
    	// Theoretically MaxInt32 is a valid PID, but the chance of it actually
    	// being used is extremely unlikely.
    	pid := math.MaxInt32
    	if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" {
    		// Solaris/Illumos have a lower limit, above which wait returns
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/os/exec_posix.go

    		var ok bool
    		h, ok = getPidfd(sysattr.Sys)
    		if !ok {
    			return newPIDProcess(pid), nil
    		}
    	}
    
    	return newHandleProcess(pid, h), nil
    }
    
    func (p *Process) kill() error {
    	return p.Signal(Kill)
    }
    
    // ProcessState stores information about a process, as reported by Wait.
    type ProcessState struct {
    	pid    int                // The process's id.
    	status syscall.WaitStatus // System-dependent status info.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top