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.
This commit is contained in:
Pawel Marczewski 2020-01-21 16:03:15 +01:00
parent cb782bd07b
commit 4f2a86d956
No known key found for this signature in database
GPG Key ID: DE42EE9B14F96465

View File

@ -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) {