Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for SysProcAttr (0.18 sec)

  1. src/syscall/exec_unix_test.go

    			t.Fatal("timed out waiting for child process")
    		}
    	}
    }
    
    // Test a couple of cases that SysProcAttr can't handle. Issue 29458.
    func TestInvalidExec(t *testing.T) {
    	t.Parallel()
    	t.Run("SetCtty-Foreground", func(t *testing.T) {
    		t.Parallel()
    		cmd := create(t)
    		cmd.proc.SysProcAttr = &syscall.SysProcAttr{
    			Setctty:    true,
    			Foreground: true,
    			Ctty:       0,
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. api/go1.5.txt

    pkg syscall (darwin-amd64), type SysProcAttr struct, Foreground bool
    pkg syscall (darwin-amd64), type SysProcAttr struct, Pgid int
    pkg syscall (darwin-amd64-cgo), type SysProcAttr struct, Ctty int
    pkg syscall (darwin-amd64-cgo), type SysProcAttr struct, Foreground bool
    pkg syscall (darwin-amd64-cgo), type SysProcAttr struct, Pgid int
    pkg syscall (freebsd-386), type SysProcAttr struct, Ctty int
    pkg syscall (freebsd-386), type SysProcAttr struct, Foreground bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  3. src/syscall/exec_linux_test.go

    	cmd.Stderr = os.Stderr
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Credential: &syscall.Credential{
    			Uid: uint32(uid),
    			Gid: uint32(gid),
    		},
    		AmbientCaps: []uintptr{CAP_SYS_TIME, CAP_SYSLOG},
    	}
    	if userns {
    		cmd.SysProcAttr.Cloneflags = syscall.CLONE_NEWUSER
    		const nobody = 65534
    		uid := os.Getuid()
    		gid := os.Getgid()
    		cmd.SysProcAttr.UidMappings = []syscall.SysProcIDMap{{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. src/os/pidfd_other.go

    //go:build (unix && !linux) || (js && wasm) || wasip1 || windows
    
    package os
    
    import "syscall"
    
    func ensurePidfd(sysAttr *syscall.SysProcAttr) *syscall.SysProcAttr {
    	return sysAttr
    }
    
    func getPidfd(_ *syscall.SysProcAttr) (uintptr, bool) {
    	return 0, false
    }
    
    func pidfdFind(_ int) (uintptr, error) {
    	return 0, syscall.ENOSYS
    }
    
    func (p *Process) pidfdRelease() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 692 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/aliases.go

    //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
    
    package unix
    
    import "syscall"
    
    type Signal = syscall.Signal
    type Errno = syscall.Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 385 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/aliases.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build windows
    
    package windows
    
    import "syscall"
    
    type Errno = syscall.Errno
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 281 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/start_posix.go

    package telemetry
    
    import (
    	"os/exec"
    	"syscall"
    )
    
    func init() {
    	daemonize = daemonizePosix
    }
    
    func daemonizePosix(cmd *exec.Cmd) {
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setsid: true,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 441 bytes
    - Viewed (0)
  8. src/os/exec/exec_windows_test.go

    	if err != nil {
    		t.Error(err)
    	}
    	const marker = "arrakis, dune, desert planet"
    	childProc := helperCommand(t, "pipehandle", strconv.FormatUint(uint64(w.Fd()), 16), marker)
    	childProc.SysProcAttr = &syscall.SysProcAttr{AdditionalInheritedHandles: []syscall.Handle{syscall.Handle(w.Fd())}}
    	err = childProc.Start()
    	if err != nil {
    		t.Error(err)
    	}
    	w.Close()
    	response, err := io.ReadAll(r)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 23:07:55 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/start_windows.go

    	// does not kill the child.
    	// See documentation of creation flags in the Microsoft documentation:
    	// https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		CreationFlags: windows.DETACHED_PROCESS,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 732 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/telemetry/internal/configstore/download_windows.go

    	//   https://learn.microsoft.com/en-us/windows/console/creation-of-a-console
    	//   https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		CreationFlags: windows.CREATE_NO_WINDOW,
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top