Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UseCgroupFD (0.11 sec)

  1. src/syscall/exec_linux.go

    		flags |= CLONE_VFORK | CLONE_VM
    	}
    	if sys.PidFD != nil {
    		flags |= CLONE_PIDFD
    	}
    	// Whether to use clone3.
    	if sys.UseCgroupFD || flags&CLONE_NEWTIME != 0 || forceClone3 {
    		clone3 = &cloneArgs{
    			flags:      uint64(flags),
    			exitSignal: uint64(SIGCHLD),
    		}
    		if sys.UseCgroupFD {
    			clone3.flags |= CLONE_INTO_CGROUP
    			clone3.cgroup = uint64(sys.CgroupFD)
    		}
    		if sys.PidFD != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. src/syscall/exec_linux_test.go

    	}
    
    	fd, suffix := prepareCgroupFD(t)
    
    	cmd := testenv.Command(t, exe, "-test.run=^TestUseCgroupFD$")
    	cmd.Env = append(cmd.Environ(), "GO_WANT_HELPER_PROCESS=1")
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		UseCgroupFD: true,
    		CgroupFD:    fd,
    	}
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		if testenv.SyscallIsNotSupported(err) && !errors.Is(err, syscall.EINVAL) {
    			// Can be one of:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top