Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for forkExec (0.33 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Flock_t.Sysid", Field, 0},
    		{"Flock_t.Type", Field, 0},
    		{"Flock_t.Whence", Field, 0},
    		{"FlushBpf", Func, 0},
    		{"FlushFileBuffers", Func, 0},
    		{"FlushViewOfFile", Func, 0},
    		{"ForkExec", Func, 0},
    		{"ForkLock", Var, 0},
    		{"FormatMessage", Func, 0},
    		{"Fpathconf", Func, 0},
    		{"FreeAddrInfoW", Func, 1},
    		{"FreeEnvironmentStrings", Func, 0},
    		{"FreeLibrary", Func, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top