Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for fd (0.02 sec)

  1. src/os/pidfd_linux.go

    	// Get a pidfd of the current process (opening of "/proc/self" won't
    	// work for waitid).
    	fd, err := unix.PidFDOpen(syscall.Getpid(), 0)
    	if err != nil {
    		return NewSyscallError("pidfd_open", err)
    	}
    	defer syscall.Close(int(fd))
    
    	// Check waitid(P_PIDFD) works.
    	for {
    		_, _, err = syscall.Syscall6(syscall.SYS_WAITID, _P_PIDFD, fd, 0, syscall.WEXITED, 0, 0)
    		if err != syscall.EINTR {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/os/exec_plan9.go

    	sysattr := &syscall.ProcAttr{
    		Dir: attr.Dir,
    		Env: attr.Env,
    		Sys: attr.Sys,
    	}
    
    	sysattr.Files = make([]uintptr, 0, len(attr.Files))
    	for _, f := range attr.Files {
    		sysattr.Files = append(sysattr.Files, f.Fd())
    	}
    
    	pid, _, e := syscall.StartProcess(name, argv, sysattr)
    	if e != nil {
    		return nil, &PathError{Op: "fork/exec", Path: name, Err: e}
    	}
    
    	return newPIDProcess(pid), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. src/os/exec_posix.go

    		sysattr.Env, err = execenv.Default(sysattr.Sys)
    		if err != nil {
    			return nil, err
    		}
    	}
    	sysattr.Files = make([]uintptr, 0, len(attr.Files))
    	for _, f := range attr.Files {
    		sysattr.Files = append(sysattr.Files, f.Fd())
    	}
    
    	pid, h, e := syscall.StartProcess(name, argv, sysattr)
    
    	// Make sure we don't run the finalizers of attr.Files.
    	runtime.KeepAlive(attr)
    
    	if e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/os/removeall_at.go

    			pathErr.Path = parentDir + string(PathSeparator) + pathErr.Path
    			err = pathErr
    		}
    		return err
    	}
    	return nil
    }
    
    func removeAllFrom(parent *File, base string) error {
    	parentFd := int(parent.Fd())
    	// Simple case: if Unlink (aka remove) works, we're done.
    	err := ignoringEINTR(func() error {
    		return unix.Unlinkat(parentFd, base, 0)
    	})
    	if err == nil || IsNotExist(err) {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top