Skip to content

Commit e53ccf5

Browse files
committed
doc: Add document for killpg
1 parent d77325f commit e53ccf5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sys/signal.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ pub fn kill<T: Into<Option<Signal>>>(pid: ::unistd::Pid, signal: T) -> Result<()
680680
Errno::result(res).map(drop)
681681
}
682682

683+
/// Send a signal to a process group [(see
684+
/// killpg(3))](http://pubs.opengroup.org/onlinepubs/9699919799/functions/killpg.html).
683685
pub fn killpg<T: Into<Option<Signal>>>(pid: ::unistd::Pid, signal: T) -> Result<()> {
684686
let res = unsafe { libc::killpg(pid.into(),
685687
match signal.into() {

0 commit comments

Comments
 (0)