From cd23a035c52c324c34990d6a5581a8bc2cf64a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 25 Feb 2018 13:12:34 +0100 Subject: [PATCH] qrexec: use distinct exit code for timeout This will allow for better error reporting --- qrexec/qrexec-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrexec/qrexec-daemon.c b/qrexec/qrexec-daemon.c index d64473c..71df964 100644 --- a/qrexec/qrexec-daemon.c +++ b/qrexec/qrexec-daemon.c @@ -271,7 +271,7 @@ void init(int xid) } } fprintf(stderr, "Cannot connect to '%s' qrexec agent for %d seconds, giving up\n", remote_domain_name, startup_timeout); - exit(1); + exit(3); } close(0); snprintf(qrexec_error_log_name, sizeof(qrexec_error_log_name),