Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for forkExec (0.26 sec)

  1. src/syscall/exec_unix.go

    }
    
    // Combination of fork and exec, careful to be thread safe.
    func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {
    	return forkExec(argv0, argv, attr)
    }
    
    // StartProcess wraps [ForkExec] for package os.
    func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error) {
    	pid, err = forkExec(argv0, argv, attr)
    	return pid, 0, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testplugin/testdata/forkexec/main.go

    		return
    	}
    
    	var wg sync.WaitGroup
    	for i := 0; i < 8; i++ {
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			// does not matter what we exec, just exec itself
    			cmd := exec.Command("./forkexec.exe", "0")
    			cmd.Run()
    		}()
    	}
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 502 bytes
    - Viewed (0)
  3. src/syscall/exec_plan9.go

    		close(waitc)
    	}()
    	ret := <-forkc
    	return ret.pid, ret.err
    }
    
    // Combination of fork and exec, careful to be thread safe.
    func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {
    	return startProcess(argv0, argv, attr)
    }
    
    // StartProcess wraps [ForkExec] for package os.
    func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. src/syscall/exec_unix_test.go

    }
    
    func TestForkExecNilArgv(t *testing.T) {
    	defer func() {
    		if p := recover(); p != nil {
    			t.Fatal("forkExec panicked")
    		}
    	}()
    
    	// We don't really care what the result of forkExec is, just that it doesn't
    	// panic, so we choose something we know won't actually spawn a process (probably).
    	syscall.ForkExec("/dev/null", nil, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testplugin/plugin_test.go

    }
    
    func TestForkExec(t *testing.T) {
    	// Issue 38824: importing the plugin package causes it hang in forkExec on darwin.
    	globalSkip(t)
    
    	t.Parallel()
    	goCmd(t, "build", "-o", "forkexec.exe", "./forkexec/main.go")
    
    	for i := 0; i < 100; i++ {
    		cmd := testenv.Command(t, "./forkexec.exe", "1")
    		err := cmd.Run()
    		if err != nil {
    			if ee, ok := err.(*exec.ExitError); ok && len(ee.Stderr) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/plan9/mkall.sh

    # 	func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr);
    #
    # The first and second are the standard ones; they differ only in
    # how many arguments can be passed to the kernel.
    # The third is for low-level use by the ForkExec wrapper;
    # unlike the first two, it does not call into the scheduler to
    # let it know that a system call is running.
    #
    # * syscall_${GOOS}.go
    #
    # This hand-written Go file implements system calls that need
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/README.md

      func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr)
    ```
    The first and second are the standard ones; they differ only in how many
    arguments can be passed to the kernel. The third is for low-level use by the
    ForkExec wrapper. Unlike the first two, it does not call into the scheduler to
    let it know that a system call is running.
    
    When porting Go to a new architecture/OS, this file must be implemented for
    each GOOS/GOARCH pair.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 06 14:32:58 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  8. src/syscall/mkall.sh

    # 	func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2, err uintptr);
    #
    # The first and second are the standard ones; they differ only in
    # how many arguments can be passed to the kernel.
    # The third is for low-level use by the ForkExec wrapper;
    # unlike the first two, it does not call into the scheduler to
    # let it know that a system call is running.
    #
    # * syscall_${GOOS}.go
    #
    # This hand-written Go file implements system calls that need
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 18:22:23 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/lib.go

    			// -flat_namespace is deprecated on iOS.
    			// It is useful for supporting plugins. We don't support plugins on iOS.
    			// -flat_namespace may cause the dynamic linker to hang at forkExec when
    			// resolving a lazy binding. See issue 38824.
    			// Force eager resolution to work around.
    			argv = append(argv, "-Wl,-flat_namespace", "-Wl,-bind_at_load")
    		}
    		if !combineDwarf {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  10. api/go1.2.txt

    pkg syscall (freebsd-386-cgo), func Fchown(int, int, int) error
    pkg syscall (freebsd-386-cgo), func Flock(int, int) error
    pkg syscall (freebsd-386-cgo), func FlushBpf(int) error
    pkg syscall (freebsd-386-cgo), func ForkExec(string, []string, *ProcAttr) (int, error)
    pkg syscall (freebsd-386-cgo), func Fpathconf(int, int) (int, error)
    pkg syscall (freebsd-386-cgo), func Fstat(int, *Stat_t) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
Back to top