From: Mike Yuan Date: Tue, 15 Apr 2025 19:19:25 +0000 (+0200) Subject: run0: disable IgnoreSIGPIPE= for transient unit X-Git-Tag: v258-rc1~679 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61ce6e673e55918937d28ca06d3392d4283e0518;p=thirdparty%2Fsystemd.git run0: disable IgnoreSIGPIPE= for transient unit --- diff --git a/src/run/run.c b/src/run/run.c index d03604e4ee7..7b6fe01d562 100644 --- a/src/run/run.c +++ b/src/run/run.c @@ -1095,6 +1095,11 @@ static int parse_argv_sudo_mode(int argc, char *argv[]) { if (strv_extend(&arg_property, "PAMName=systemd-run0") < 0) return log_oom(); + /* The service manager ignores SIGPIPE for all spawned processes by default. Let's explicitly override + * that here, since we're primarily invoked in interactive environments where this does matter. */ + if (strv_extend(&arg_property, "IgnoreSIGPIPE=no") < 0) + return log_oom(); + if (!arg_background && arg_stdio == ARG_STDIO_PTY && shall_tint_background()) { double hue;