Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
leongross committed Aug 2, 2024
1 parent d980e38 commit aa6f630
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/os/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Process struct {
}

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

func (p *Process) Wait() (*ProcessState, error) {
Expand Down
2 changes: 1 addition & 1 deletion src/os/exec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
// 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.
// It thereby replaces the newly created process with the specified command and arguments.
func startProcess(name string, argv []string, attr *ProcAttr) (p *Process, err error) {
pid, err := ForkExec(name, argv, attr)
pid, err := forkExec(name, argv, attr)
if err != nil {
return nil, err
}
Expand Down
File renamed without changes.

0 comments on commit aa6f630

Please sign in to comment.