Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for ProcAttr (0.25 sec)

  1. src/syscall/syscall_test.go

    }
    
    // Check that permuting child process fds doesn't interfere with
    // reporting of fork/exec status. See Issue 14979.
    func TestExecErrPermutedFds(t *testing.T) {
    	testenv.MustHaveExec(t)
    
    	attr := &os.ProcAttr{Files: []*os.File{os.Stdin, os.Stderr, os.Stdout}}
    	_, err := os.StartProcess("/", []string{"/"}, attr)
    	if err == nil {
    		t.Fatalf("StartProcess of invalid program returned err = nil")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Mar 14 17:56:50 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. src/syscall/syscall_js.go

    func (w WaitStatus) StopSignal() Signal { return 0 }
    func (w WaitStatus) TrapCause() int     { return 0 }
    
    // XXX made up
    type Rusage struct {
    	Utime Timeval
    	Stime Timeval
    }
    
    // XXX made up
    type ProcAttr struct {
    	Dir   string
    	Env   []string
    	Files []uintptr
    	Sys   *SysProcAttr
    }
    
    type SysProcAttr struct {
    }
    
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/syscall/syscall_wasip1.go

    type Rusage struct {
    	Utime Timeval
    	Stime Timeval
    }
    
    // ProcAttr is a placeholder to allow compilation of the [os/exec] package
    // because we need Go programs to be portable across platforms. WASI does
    // not have a mechanism to to spawn processes so there is no reason for an
    // application to take a dependency on this type.
    type ProcAttr struct {
    	Dir   string
    	Env   []string
    	Files []uintptr
    	Sys   *SysProcAttr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/os/exec_test.go

    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatalf("Pipe() got err %v, want nil", err)
    	}
    	defer r.Close()
    	defer w.Close()
    
    	p, err := os.StartProcess(testenv.GoToolPath(t), []string{"go"}, &os.ProcAttr{
    		// N.B. On Windows, StartProcess requires exactly 3 Files. Pass
    		// in a dummy pipe to avoid irrelevant output on the test stdout.
    		Files: []*os.File{r, w, w},
    	})
    	if err != nil {
    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/exec_freebsd.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal
    	Ctty    int  // Controlling TTY fd
    	// Foreground places the child process group in the foreground.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/syscall/exec_libc2.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal
    	Ctty    int  // Controlling TTY fd
    	// Foreground places the child process group in the foreground.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. src/os/exec.go

    	// returning the wait status, while future calls error with "process
    	// released" rather than "process done".
    	p.state.CompareAndSwap(0, uint64(reason))
    }
    
    // ProcAttr holds the attributes that will be applied to a new process
    // started by StartProcess.
    type ProcAttr struct {
    	// If Dir is non-empty, the child changes into the directory before
    	// creating the process.
    	Dir string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. src/syscall/exec_libc.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal
    	Ctty    int  // Controlling TTY fd
    	// Foreground places the child process group in the foreground.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. src/syscall/exec_linux.go

    	// or, if Pgid == 0, to the new child's process ID.
    	Setpgid bool
    	// Setctty sets the controlling terminal of the child to
    	// file descriptor Ctty. Ctty must be a descriptor number
    	// in the child process: an index into ProcAttr.Files.
    	// This is only meaningful if Setsid is true.
    	Setctty bool
    	Noctty  bool // Detach fd 0 from controlling terminal.
    	Ctty    int  // Controlling TTY fd.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. src/runtime/security_test.go

    	setSetuid(t, lowPrivUser, helloBin)
    
    	b := bytes.NewBuffer(nil)
    	pr, pw, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	proc, err := os.StartProcess(helloBin, []string{helloBin}, &os.ProcAttr{
    		Env:   []string{"GOTRACEBACK=system", "TEST_OUTPUT=" + tempfilePath},
    		Files: []*os.File{os.Stdin, pw},
    	})
    	if err != nil {
    		if os.IsPermission(err) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 18:10:14 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top