1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-02 08:57:19 -04:00

[main] Fixed issue with scripting and fork_on_start

This commit is contained in:
Witold Filipczyk 2020-05-22 21:52:36 +02:00
parent 058c3f6d0a
commit c56d11cfb9

View File

@ -60,6 +60,7 @@ struct program program;
static int ac; static int ac;
static unsigned char **av; static unsigned char **av;
static int init_b = 0; static int init_b = 0;
static int init_o = 0;
/* Check if either stdin or stdout are pipes */ /* Check if either stdin or stdout are pipes */
static void static void
@ -107,7 +108,7 @@ check_cwd(void)
void void
parse_options_again(void) parse_options_again(void)
{ {
if (!init_b) { if (!init_o) {
load_config(); load_config();
update_options_visibility(); update_options_visibility();
/* Parse commandline options again, in order to override any /* Parse commandline options again, in order to override any
@ -118,7 +119,7 @@ parse_options_again(void)
if (!remote_session_flags) { if (!remote_session_flags) {
check_stdio(NULL); check_stdio(NULL);
} }
init_b = 1; init_o = 1;
} }
} }
@ -190,6 +191,7 @@ init(void)
|| (fd = init_interlink()) == -1) { || (fd = init_interlink()) == -1) {
parse_options_again(); parse_options_again();
init_b = 1;
init_modules(builtin_modules); init_modules(builtin_modules);
} }