forge
Explore
Log in

Don't you dare go Hollow

utils/spawning: Remove unnecessary cfgs

Browse files at this commit

54c2e2ab476629d17fdba861895f58e7cdac32abIvan MolodetskikhParent: df3f397
Forgotten when this was refactored.
src/utils/spawning.rsmodified+0 -4
@@ -332,7 +332,6 @@ mod systemd {
332332 trace!("spawned PID: {pid}");
333333
334334 // Start a systemd scope for the grandchild.
335- #[cfg(feature = "systemd")]
336335 if let Err(err) = start_systemd_scope(command, child.id(), pid as u32) {
337336 trace!("error starting systemd scope for spawned command: {err:?}");
338337 }
@@ -351,7 +350,6 @@ mod systemd {
351350 Some(child)
352351 }
353352
354- #[cfg(feature = "systemd")]
355353 fn write_all(fd: impl AsFd, buf: &[u8]) -> rustix::io::Result<()> {
356354 let mut written = 0;
357355 loop {
@@ -367,7 +365,6 @@ mod systemd {
367365 }
368366 }
369367
370- #[cfg(feature = "systemd")]
371368 fn read_all(fd: impl AsFd, buf: &mut [u8]) -> rustix::io::Result<()> {
372369 let mut start = 0;
373370 loop {
@@ -387,7 +384,6 @@ mod systemd {
387384 ///
388385 /// This separates the pid from the compositor scope, which for example prevents the OOM killer
389386 /// from bringing down the compositor together with a misbehaving client.
390- #[cfg(feature = "systemd")]
391387 fn start_systemd_scope(
392388 name: &OsStr,
393389 intermediate_pid: u32,