Skip to content

Commit

Permalink
Update process.c.v
Browse files Browse the repository at this point in the history
Fix returns
  • Loading branch information
SewerynKaminski authored Jan 27, 2024
1 parent c5ca612 commit 9d6fbe1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 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_term - terminate the process
Expand All @@ -23,7 +22,6 @@ pub fn (mut p Process) signal_term() {
return
}
p._signal_term()
return
}

// signal_pgkill - kills the whole process group
Expand All @@ -32,7 +30,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 @@ -42,7 +39,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 @@ -52,7 +48,6 @@ pub fn (mut p Process) signal_continue() {
}
p._signal_continue()
p.status = .running
return
}

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

// close - free the OS resources associated with the process.
Expand Down Expand Up @@ -141,7 +135,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 @@ -341,5 +334,4 @@ pub fn (mut p Process) run() {
return
}
p._spawn()
return
}

0 comments on commit 9d6fbe1

Please sign in to comment.