From d2006fd3ddb65cd87cffaa45b6faa6ccfc2deaf2 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 27 Oct 2006 18:59:36 +0200 Subject: [PATCH] Always terminate ELinks when using -remote. The side effect: ELinks doesn't clear screen with -remote 'openURL(...)'. --- src/main/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/main.c b/src/main/main.c index 404ef1a0..5901665f 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -153,6 +153,8 @@ init(void) if (!remote_session_flags) { check_stdio(&url_list); + } else { + program.terminate = 1; } if (!get_cmd_opt_bool("no-home")) { @@ -208,13 +210,11 @@ init(void) usrerror(gettext("No running ELinks found.")); program.retval = RET_PING; } - program.terminate = 1; } else if (remote_session_flags && fd == -1) { /* The remote session(s) can not be created */ usrerror(gettext("No remote session to connect to.")); program.retval = RET_REMOTE; - program.terminate = 1; } else { struct string info; -- 2.11.4.GIT