1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Always terminate ELinks when using -remote.

The side effect: ELinks doesn't clear screen with -remote 'openURL(...)'.
This commit is contained in:
Witold Filipczyk 2006-10-27 18:59:36 +02:00 committed by Witold Filipczyk
parent aae5caed6a
commit d2006fd3dd

View File

@ -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;