diff options
author | Ivan Petkov <ivanppetkov@gmail.com> | 2020-10-06 10:30:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 17:30:16 +0000 |
commit | 4cf45c038b9691f24fac22df13594c2223b185f6 (patch) | |
tree | 2e9a92280ce9860daf2a8b3d57ae11441264097b /tokio/src/macros | |
parent | 9730317e94cd5bfca237376549405a6feb815223 (diff) |
process: add ProcessDriver to handle orphan reaping (#2907)
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/cfg.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs index f245b09e..328f3230 100644 --- a/tokio/src/macros/cfg.rs +++ b/tokio/src/macros/cfg.rs @@ -242,6 +242,23 @@ macro_rules! cfg_process { } } +macro_rules! cfg_process_driver { + ($($item:item)*) => { + #[cfg(unix)] + #[cfg(not(loom))] + cfg_process! { $($item)* } + } +} + +macro_rules! cfg_not_process_driver { + ($($item:item)*) => { + $( + #[cfg(not(all(unix, not(loom), feature = "process")))] + $item + )* + } +} + macro_rules! cfg_signal { ($($item:item)*) => { $( |