From 4f2a86d95648f423f40b122f46fca481a4db7fda Mon Sep 17 00:00:00 2001 From: Pawel Marczewski Date: Tue, 21 Jan 2020 16:03:15 +0100 Subject: [PATCH] qrexec-client: ignore SIGPIPE This caused qrexec-client to be killed when the local process exited (by design) before consuming all the input, for instance when receiving too much data for the admin.vm.volume.Import call. --- qrexec/qrexec-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qrexec/qrexec-client.c b/qrexec/qrexec-client.c index 8b8d5a6..0ed67f3 100644 --- a/qrexec/qrexec-client.c +++ b/qrexec/qrexec-client.c @@ -708,6 +708,8 @@ int main(int argc, char **argv) usage(argv[0]); remote_cmdline = argv[optind]; + signal(SIGPIPE, SIG_IGN); + register_exec_func(&do_exec); if (just_exec + connect_existing + (local_cmdline != 0) > 1) {