fix /proc/<pid>/comm check

This commit is contained in:
Jeffrey C. Ollie
2024-07-29 17:05:05 -05:00
parent 99e447898b
commit 46264cbe7c

View File

@ -70,7 +70,7 @@ pub fn launchedBySystemd() bool {
};
const comm_data = comm_data_buf[0..comm_size];
if (std.mem.eql(u8, comm_data, "systemd")) break :linux true;
if (std.mem.eql(u8, std.mem.trimRight(u8, comm_data, "\n"), "systemd")) break :linux true;
break :linux false;
};