Skip to content

Commit

Permalink
Update process.c.v
Browse files Browse the repository at this point in the history
  • Loading branch information
SewerynKaminski authored Jan 27, 2024
1 parent 0a1a562 commit eb67c6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vlib/os/process.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ pub fn (mut p Process) signal_kill() {
p.status = .aborted
return
}

// signal_term - terminate the process
pub fn (mut p Process) signal_term() {
if p.status !in [.running, .stopped] {
return
}
p._signal_term()
return
}

// signal_pgkill - kills the whole process group
pub fn (mut p Process) signal_pgkill() {
Expand Down

0 comments on commit eb67c6a

Please sign in to comment.