Skip to content

Commit a2f948d

Browse files
Add killpg
1 parent a58ce98 commit a2f948d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ extern {
562562
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
563563
link_name = "kill$UNIX2003")]
564564
pub fn kill(pid: pid_t, sig: ::c_int) -> ::c_int;
565+
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
566+
link_name = "killpg$UNIX2003")]
567+
pub fn killpg(pgrp: pid_t, sig: ::c_int) -> ::c_int;
565568

566569
pub fn mlock(addr: *const ::c_void, len: ::size_t) -> ::c_int;
567570
pub fn munlock(addr: *const ::c_void, len: ::size_t) -> ::c_int;

0 commit comments

Comments
 (0)