From 353e12c2f4a9e96a47eb80b80d2ffb7bc1d44a1b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 9 Feb 2012 03:18:04 +0100 Subject: service: ignore SIGPIPE by default --- units/console-shell.service.m4 | 1 + units/emergency.service | 1 + units/fedora/prefdm.service | 1 + units/getty@.service.m4 | 1 + units/serial-getty@.service.m4 | 1 + 5 files changed, 5 insertions(+) (limited to 'units') diff --git a/units/console-shell.service.m4 b/units/console-shell.service.m4 index 02adc8403b..fef9e1b176 100644 --- a/units/console-shell.service.m4 +++ b/units/console-shell.service.m4 @@ -37,6 +37,7 @@ StandardInput=tty-force StandardOutput=inherit StandardError=inherit KillMode=process +IgnoreSIGPIPE=no # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash # terminates cleanly. diff --git a/units/emergency.service b/units/emergency.service index 4847f4f0c6..234bafcc88 100644 --- a/units/emergency.service +++ b/units/emergency.service @@ -24,6 +24,7 @@ StandardInput=tty-force StandardOutput=inherit StandardError=inherit KillMode=process +IgnoreSIGPIPE=no # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash # terminates cleanly. diff --git a/units/fedora/prefdm.service b/units/fedora/prefdm.service index 17ed4cd786..77a0e9ad7c 100644 --- a/units/fedora/prefdm.service +++ b/units/fedora/prefdm.service @@ -18,3 +18,4 @@ After=getty@tty1.service plymouth-quit.service ExecStart=/etc/X11/prefdm -nodaemon Restart=always RestartSec=0 +IgnoreSIGPIPE=no diff --git a/units/getty@.service.m4 b/units/getty@.service.m4 index d2a145dacd..a02838d785 100644 --- a/units/getty@.service.m4 +++ b/units/getty@.service.m4 @@ -44,6 +44,7 @@ TTYReset=yes TTYVHangup=yes TTYVTDisallocate=yes KillMode=process +IgnoreSIGPIPE=no # Unset locale for the console getty since the console has problems # displaying some internationalized messages. diff --git a/units/serial-getty@.service.m4 b/units/serial-getty@.service.m4 index e5f0ca6c6c..fc8b57b93e 100644 --- a/units/serial-getty@.service.m4 +++ b/units/serial-getty@.service.m4 @@ -43,6 +43,7 @@ TTYPath=/dev/%I TTYReset=yes TTYVHangup=yes KillMode=process +IgnoreSIGPIPE=no # Some login implementations ignore SIGTERM, so we send SIGHUP # instead, to ensure that login terminates cleanly. -- cgit v1.2.3-54-g00ecf