Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 124 for getppid (0.12 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DaemonContext.java

         */
        File getDaemonRegistryDir();
    
        /**
         * The process id of the daemon.
         */
        Long getPid();
    
        /**
         * The daemon's idle timeout in milliseconds.
         */
        Integer getIdleTimeout();
    
        /**
         * Returns the JVM options that the daemon was started with.
         *
         * @return the JVM options that the daemon was started with
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/syscall/syscall_linux_s390x.go

    //sys	Fstatfs(fd int, buf *Statfs_t) (err error)
    //sys	Ftruncate(fd int, length int64) (err error)
    //sysnb	Getegid() (egid int)
    //sysnb	Geteuid() (euid int)
    //sysnb	Getgid() (gid int)
    //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error) = SYS_GETRLIMIT
    //sysnb	Getuid() (uid int)
    //sysnb	InotifyInit() (fd int, err error)
    //sys	Lchown(path string, uid int, gid int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. pkg/util/procfs/procfs_linux.go

    	if len(name) == 0 {
    		return []int{}, fmt.Errorf("name should not be empty")
    	}
    	re, err := regexp.Compile("(^|/)" + name + "$")
    	if err != nil {
    		return []int{}, err
    	}
    	return getPids(re), nil
    }
    
    func getPids(re *regexp.Regexp) []int {
    	pids := []int{}
    
    	dirFD, err := os.Open("/proc")
    	if err != nil {
    		return nil
    	}
    	defer dirFD.Close()
    
    	for {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. src/os/exec_test.go

    	if runtime.GOARCH == "wasm" {
    		t.Skip("Signals send + notify not fully supported om wasm port")
    	}
    
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, os.Interrupt)
    	defer signal.Stop(c)
    
    	p := &os.Process{Pid: os.Getpid()}
    	if err := p.Signal(os.Interrupt); err != nil {
    		t.Fatalf("Signal got err %v, want nil", err)
    	}
    
    	// Verify we actually received the signal.
    	select {
    	case <-time.After(1 * time.Second):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/syscall/asm_solaris_amd64.s

    TEXT ·fcntl1(SB),NOSPLIT,$0
    	JMP	runtime·syscall_fcntl(SB)
    
    TEXT ·forkx(SB),NOSPLIT,$0
    	JMP	runtime·syscall_forkx(SB)
    
    TEXT ·gethostname(SB),NOSPLIT,$0
    	JMP	runtime·syscall_gethostname(SB)
    
    TEXT ·getpid(SB),NOSPLIT,$0
    	JMP	runtime·syscall_getpid(SB)
    
    TEXT ·ioctl(SB),NOSPLIT,$0
    	JMP	runtime·syscall_ioctl(SB)
    
    TEXT ·RawSyscall(SB),NOSPLIT,$0
    	JMP	runtime·syscall_rawsyscall(SB)
    
    TEXT ·RawSyscall6(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 17:21:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/runtime/pprof/proto_windows.go

    }
    
    func createModuleSnapshot() (syscall.Handle, error) {
    	for {
    		snap, err := syscall.CreateToolhelp32Snapshot(windows.TH32CS_SNAPMODULE|windows.TH32CS_SNAPMODULE32, uint32(syscall.Getpid()))
    		var errno syscall.Errno
    		if err != nil && errors.As(err, &errno) && errno == windows.ERROR_BAD_LENGTH {
    			// When CreateToolhelp32Snapshot(SNAPMODULE|SNAPMODULE32, ...) fails
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/jna/UnsupportedEnvironment.java

            throw notSupported();
        }
    
        @Override
        public boolean maybeSetProcessDir(File processDir) {
            return false;
        }
    
        @Override
        public Long getPid() throws NativeIntegrationException {
            if (pid != null) {
                return pid;
            }
            throw notSupported();
        }
    
        @Override
        public Long maybeGetPid() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/registry/DaemonStopEvents.java

                    return 0;
                }
            });
    
            // User likely doesn't care about daemons that stopped a long time ago
            for (DaemonStopEvent event : sortedEvents) {
                Long pid = event.getPid();
                if (event.occurredInLastHours(RECENTLY) && !uniqueStoppedPids.contains(pid)) {
                    // We can only determine if two DaemonStopEvent point at the same daemon if we know the PIDs
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprogcgo/exec.go

    	for i := 0; i < goCount; i++ {
    		go func() {
    			defer wg.Done()
    			for j := 0; j < execCount; j++ {
    				c2 := make(chan os.Signal, 1)
    				signal.Notify(c2, syscall.SIGUSR1)
    				syscall.Kill(os.Getpid(), syscall.SIGTERM)
    				go func(j int) {
    					defer wg.Done()
    					cmd := exec.Command(os.Args[0], "CgoExecSignalMask", "testsigint")
    					cmd.Stdin = os.Stdin
    					cmd.Stdout = os.Stdout
    					cmd.Stderr = os.Stderr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  10. src/runtime/runtime_linux_test.go

    	// we can't test that it does anything.
    	// Instead we're testing that the conditions are good
    	// for how it is used in init (must be on main thread).
    	pid, tid = syscall.Getpid(), syscall.Gettid()
    	LockOSThread()
    
    	sysNanosleep = func(d time.Duration) {
    		// Invoke a blocking syscall directly; calling time.Sleep()
    		// would deschedule the goroutine instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:20:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top