Skip to content

Commit 47283af

Browse files
committed
Deprecate vfork
1 parent 53bdffc commit 47283af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/linux_like/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,10 @@ extern "C" {
14581458
pub fn acct(filename: *const ::c_char) -> ::c_int;
14591459
pub fn brk(addr: *mut ::c_void) -> ::c_int;
14601460
pub fn sbrk(increment: ::intptr_t) -> *mut ::c_void;
1461+
#[deprecated(
1462+
since = "0.2.65",
1463+
note = "generates incorrect code due to the lack of #[returns_twice]"
1464+
)]
14611465
pub fn vfork() -> ::pid_t;
14621466
pub fn setresgid(rgid: ::gid_t, egid: ::gid_t, sgid: ::gid_t) -> ::c_int;
14631467
pub fn setresuid(ruid: ::uid_t, euid: ::uid_t, suid: ::uid_t) -> ::c_int;

0 commit comments

Comments
 (0)