Skip to content

Commit aa6f630

Browse files
committed
renaming
1 parent d980e38 commit aa6f630

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/os/exec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ type Process struct {
6262
}
6363

6464
func StartProcess(name string, argv []string, attr *ProcAttr) (*Process, error) {
65-
return nil, &PathError{Op: "fork/exec", Path: name, Err: ErrNotImplemented}
65+
return startProcess(name, argv, attr)
6666
}
6767

6868
func (p *Process) Wait() (*ProcessState, error) {

src/os/exec_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
101101
// The StartProcess function creates a new process by forking the current process and then calling execve to replace the current process with the new process.
102102
// It thereby replaces the newly created process with the specified command and arguments.
103103
func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) {
104-
pid, err := ForkExec(name, argv, attr)
104+
pid, err := forkExec(name, argv, attr)
105105
if err != nil {
106106
return nil, err
107107
}
File renamed without changes.

0 commit comments

Comments
 (0)