diff --git a/CHANGELOG.md b/CHANGELOG.md index ec74eb270d..35e32a4427 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). ([#1020](https://github.com/nix-rust/nix/pull/1020)) ### Removed +- `Daemon`, `NOTE_REAP`, and `NOTE_EXIT_REPARENTED` are now deprecated on OSX + and iOS. + ([#1033](https://github.com/nix-rust/nix/pull/1033)) ## [0.13.0] - 2019-01-15 ### Added diff --git a/src/sys/event.rs b/src/sys/event.rs index e2a4eaa16e..b238d6eeb3 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -135,6 +135,7 @@ libc_bitflags!( NOTE_EXEC; NOTE_EXIT; #[cfg(any(target_os = "macos", target_os = "ios"))] + #[deprecated( since="0.14.0", note="Deprecated since OSX 10.9")] NOTE_EXIT_REPARENTED; #[cfg(any(target_os = "macos", target_os = "ios"))] NOTE_EXITSTATUS; @@ -183,6 +184,8 @@ libc_bitflags!( NOTE_PCTRLMASK; NOTE_PDATAMASK; #[cfg(any(target_os = "macos", target_os = "ios"))] + #[cfg(any(target_os = "macos", target_os = "ios"))] + #[deprecated( since="0.14.0", note="Deprecated since OSX 10.9")] NOTE_REAP; NOTE_RENAME; NOTE_REVOKE; diff --git a/src/unistd.rs b/src/unistd.rs index a41c1392be..9022fa1070 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -828,6 +828,10 @@ pub fn execveat(dirfd: RawFd, pathname: &CString, args: &[CString], /// descriptors will remain identical after daemonizing. /// * `noclose = false`: The process' stdin, stdout, and stderr will point to /// `/dev/null` after daemonizing. +#[cfg_attr(any(target_os = "macos", target_os = "ios"), deprecated( + since="0.14.0", + note="Deprecated in MacOSX 10.5" +))] pub fn daemon(nochdir: bool, noclose: bool) -> Result<()> { let res = unsafe { libc::daemon(nochdir as c_int, noclose as c_int) }; Errno::result(res).map(drop)