Ticket #3121: empty subshell/command line prompt.

If subshell is initializing more than 1 second - we have no subshell.

(feed_subshell): change timeout to 10 secons. I belive that is more than
enough time to run subshell.

Thanks Alexandr Zamaraev (aka Tonal) <tonal.promsoft@gmail.com> and
antonio_so <sozonnik@gmail.com> for finding out the cause of the
problem.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2022-11-26 14:21:55 +03:00
parent 87bfef7317
commit 1ac5c22517

View File

@ -748,8 +748,9 @@ feed_subshell (int how, gboolean fail_on_error)
should_read_new_subshell_prompt = FALSE;
/* we wait up to 1 second if fail_on_error, forever otherwise */
wtime.tv_sec = 1;
/* have more than enough time to run subshell:
wait up to 10 second if fail_on_error, forever otherwise */
wtime.tv_sec = 10;
wtime.tv_usec = 0;
wptr = fail_on_error ? &wtime : NULL;