[PATCH 1/2] Set sensible errno if port open times out

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


On Fri Mar 11, 2011 at 17:10:12 +0100, Lubomir Rintel wrote:
> ---
>  src/main.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/main.c b/src/main.c
> index f42dc05..e28eef0 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -112,6 +112,7 @@ char *esc_key(void)
>  static void get_alrm(int dummy)
>  {
>    (void)dummy;
> +  errno = ETIME;
>    longjmp(albuf, 1);
>  }

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