Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 400 for Pid (0.31 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PidInstrumentation.groovy

        }
    
        private static File createPidFile() {
            def pidFile = File.createTempFile("build-under-test", ".pid")
            pidFile.deleteOnExit()
            pidFile
        }
    
        private static File createPidFileInitScript(File pidFile) {
            def pidFileInitScript = File.createTempFile("pid-instrumentation", ".gradle")
            pidFileInitScript.deleteOnExit()
            pidFileInitScript.text = """
                def e
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. cni/pkg/repair/netns.go

    	"strconv"
    
    	netns "github.com/containernetworking/plugins/pkg/ns"
    	"github.com/prometheus/procfs"
    	corev1 "k8s.io/api/core/v1"
    
    	"istio.io/istio/pkg/log"
    )
    
    func getPidNamespace(pid int) string {
    	return "/host/proc/" + strconv.Itoa(pid) + "/ns/net"
    }
    
    func runInHost[T any](f func() (T, error)) (T, error) {
    	var res T
    	ns := getPidNamespace(1)
    	err := netns.WithNetNSPath(ns, func(_ netns.NetNS) error {
    		var err error
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 04:07:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. buildscripts/resolve-right-versions.sh

    	"${WORK_DIR}/mc" cp --quiet -r "buildscripts/cicd-corpus/" "${WORK_DIR}/cicd-corpus/"
    
    	"${MINIO[@]}" --address ":$start_port" "${WORK_DIR}/cicd-corpus/disk{1...5}" >"${WORK_DIR}/server1.log" 2>&1 &
    	pid=$!
    	disown $pid
    	sleep 5
    
    	if ! ps -p ${pid} 1>&2 >/dev/null; then
    		echo "server1 log:"
    		cat "${WORK_DIR}/server1.log"
    		echo "FAILED"
    		purge "$WORK_DIR"
    		exit 1
    	fi
    
    	"${WORK_DIR}/mc" stat minio/bucket/testobj
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Aug 16 14:51:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_fuzztime.txt

    # This fuzz function creates a file with a unique name ($pid.$count) on each
    # run. We count the files to find the number of runs.
    mkdir count
    go test -fuzz=FuzzTestCount -fuzztime=1000x -fuzzminimizetime=1x
    go run check_file_count.go count 1000
    
    # When we use fuzzminimizetime with an "x" suffix, it runs a specific number of
    # times while minimizing. This fuzz function creates a file with a unique name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 20:09:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. src/runtime/syscall_aix.go

    	return
    }
    
    //go:linkname syscall_forkx syscall.forkx
    //go:nosplit
    func syscall_forkx(flags uintptr) (pid uintptr, err uintptr) {
    	pid, err = syscall1(&libc_fork, flags)
    	return
    }
    
    //go:linkname syscall_getpid syscall.getpid
    //go:nosplit
    func syscall_getpid() (pid, err uintptr) {
    	pid, err = syscall0(&libc_getpid)
    	return
    }
    
    //go:linkname syscall_ioctl syscall.ioctl
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultProcessMetaDataProvider.java

            this.environment = environment;
        }
    
        @Override
        public String getProcessIdentifier() {
            Long pid = environment.maybeGetPid();
            return pid == null ? "gradle" : String.valueOf(pid);
        }
    
        @Override
        public String getProcessDisplayName() {
            return "gradle";
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:52 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ptrace_darwin.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin && !ios
    
    package unix
    
    func ptrace(request int, pid int, addr uintptr, data uintptr) error {
    	return ptrace1(request, pid, addr, data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 315 bytes
    - Viewed (0)
  8. src/os/signal/signal_cgo_test.go

    	}
    
    	// Wait for first child to send the second child's PID.
    	b := make([]byte, 8)
    	n, err := controlR.Read(b)
    	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)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    }
    
    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 PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, 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: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  10. src/internal/syscall/unix/pidfd_linux.go

    	_, _, errno := syscall.Syscall(pidfdSendSignalTrap, pidfd, uintptr(s), 0)
    	if errno != 0 {
    		return errno
    	}
    	return nil
    }
    
    func PidFDOpen(pid, flags int) (uintptr, error) {
    	pidfd, _, errno := syscall.Syscall(pidfdOpenTrap, uintptr(pid), uintptr(flags), 0)
    	if errno != 0 {
    		return ^uintptr(0), errno
    	}
    	return uintptr(pidfd), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 591 bytes
    - Viewed (0)
Back to top