[PATCH 2/2] Increase serial port open timeout

Adam Lackorzynski adam at os.inf.tu-dresden.de
Wed Mar 23 16:26:11 UTC 2011


On Fri Mar 11, 2011 at 17:10:13 +0100, Lubomir Rintel wrote:
> Certain serial devices take as much as 15 seconds to open. This was observed
> with ZTE USB GSM modems which don't respond to "option" driver's DTR/RTS
> setting URB requests and let a 5-second time-outs fire up in a row.
> ---
>  src/main.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/main.c b/src/main.c
> index e28eef0..78640fa 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -231,7 +231,7 @@ int open_term(int doinit, int show_win_on_error, int no_msgs)
>    if (setjmp(albuf) == 0) {
>      portfd = -1;
>      signal(SIGALRM, get_alrm);
> -    alarm(4);
> +    alarm(20);
>  #ifdef USE_SOCKET
>  #define SOCKET_PREFIX "unix#"
>      portfd_is_socket = portfd_is_connected = 0;

Thanks, applied.


Adam
-- 
Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/



More information about the minicom-devel mailing list