mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
87bfef7317
commit
1ac5c22517
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user