Skip to content

Commit

Permalink
Update process.c.v
Browse files Browse the repository at this point in the history
Removing unnecesary `retun`s
  • Loading branch information
SewerynKaminski authored Jan 27, 2024
1 parent 75e9065 commit 55523df
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vlib/os/process.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pub fn (mut p Process) signal_kill() {
}
p._signal_kill()
p.status = .aborted
return
}

// signal_pgkill - kills the whole process group
Expand All @@ -23,7 +22,6 @@ pub fn (mut p Process) signal_pgkill() {
return
}
p._signal_pgkill()
return
}

// signal_stop - stops the process, you can resume it with p.signal_continue()
Expand All @@ -33,7 +31,6 @@ pub fn (mut p Process) signal_stop() {
}
p._signal_stop()
p.status = .stopped
return
}

// signal_continue - tell a stopped process to continue/resume its work
Expand All @@ -43,7 +40,6 @@ pub fn (mut p Process) signal_continue() {
}
p._signal_continue()
p.status = .running
return
}

// wait - wait for a process to finish.
Expand All @@ -60,7 +56,6 @@ pub fn (mut p Process) wait() {
return
}
p._wait()
return
}

// close - free the OS resources associated with the process.
Expand Down Expand Up @@ -132,7 +127,6 @@ pub fn (mut p Process) set_redirect_stdio() {
$if trace_process_pipes ? {
eprintln('${@LOCATION}, pid: ${p.pid}, status: ${p.status}')
}
return
}

// stdin_write will write the string `s`, to the stdin pipe of the child process.
Expand Down Expand Up @@ -323,5 +317,4 @@ pub fn (mut p Process) run() {
return
}
p._spawn()
return
}

0 comments on commit 55523df

Please sign in to comment.