diff options
Diffstat (limited to 'debian/patches/quieter-signals.patch')
-rw-r--r-- | debian/patches/quieter-signals.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/quieter-signals.patch b/debian/patches/quieter-signals.patch new file mode 100644 index 000000000..572a6e67c --- /dev/null +++ b/debian/patches/quieter-signals.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Description: Reduce severity of "Killed by signal %d" | ||
2 | This produces irritating messages when using ProxyCommand or other programs | ||
3 | that use ssh under the covers (e.g. Subversion). These messages are more | ||
4 | normally printed by the calling program, such as the shell. | ||
5 | . | ||
6 | According to the upstream bug, the right way to avoid this is to use the -q | ||
7 | option, so we may drop this patch after further investigation into whether | ||
8 | any software in Debian is still relying on it. | ||
9 | Author: Peter Samuelson <peter@p12n.org> | ||
10 | Author: Colin Watson <cjwatson@debian.org> | ||
11 | Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1118 | ||
12 | Bug-Debian: http://bugs.debian.org/313371 | ||
13 | Last-Update: 2010-02-27 | ||
14 | |||
15 | Index: b/clientloop.c | ||
16 | =================================================================== | ||
17 | --- a/clientloop.c | ||
18 | +++ b/clientloop.c | ||
19 | @@ -1529,8 +1529,10 @@ | ||
20 | exit_status = 0; | ||
21 | } | ||
22 | |||
23 | - if (received_signal) | ||
24 | - fatal("Killed by signal %d.", (int) received_signal); | ||
25 | + if (received_signal) { | ||
26 | + debug("Killed by signal %d.", (int) received_signal); | ||
27 | + cleanup_exit((int) received_signal + 128); | ||
28 | + } | ||
29 | |||
30 | /* | ||
31 | * In interactive mode (with pseudo tty) display a message indicating | ||