utils/spawning: Remove unnecessary cfgs
Browse files at this commit54c2e2ab476629d17fdba861895f58e7cdac32abParent: df3f3971 changed file +0 -4
- src/utils/spawning.rs +0 -4
src/utils/spawning.rsmodified+0 -4
| @@ -332,7 +332,6 @@ mod systemd { | ||
| 332 | 332 | trace!("spawned PID: {pid}"); |
| 333 | 333 | |
| 334 | 334 | // Start a systemd scope for the grandchild. |
| 335 | - #[cfg(feature = "systemd")] | |
| 336 | 335 | if let Err(err) = start_systemd_scope(command, child.id(), pid as u32) { |
| 337 | 336 | trace!("error starting systemd scope for spawned command: {err:?}"); |
| 338 | 337 | } |
| @@ -351,7 +350,6 @@ mod systemd { | ||
| 351 | 350 | Some(child) |
| 352 | 351 | } |
| 353 | 352 | |
| 354 | - #[cfg(feature = "systemd")] | |
| 355 | 353 | fn write_all(fd: impl AsFd, buf: &[u8]) -> rustix::io::Result<()> { |
| 356 | 354 | let mut written = 0; |
| 357 | 355 | loop { |
| @@ -367,7 +365,6 @@ mod systemd { | ||
| 367 | 365 | } |
| 368 | 366 | } |
| 369 | 367 | |
| 370 | - #[cfg(feature = "systemd")] | |
| 371 | 368 | fn read_all(fd: impl AsFd, buf: &mut [u8]) -> rustix::io::Result<()> { |
| 372 | 369 | let mut start = 0; |
| 373 | 370 | loop { |
| @@ -387,7 +384,6 @@ mod systemd { | ||
| 387 | 384 | /// |
| 388 | 385 | /// This separates the pid from the compositor scope, which for example prevents the OOM killer |
| 389 | 386 | /// from bringing down the compositor together with a misbehaving client. |
| 390 | - #[cfg(feature = "systemd")] | |
| 391 | 387 | fn start_systemd_scope( |
| 392 | 388 | name: &OsStr, |
| 393 | 389 | intermediate_pid: u32, |