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

Lubomir Rintel lkundrak at v3.sk
Fri Mar 11 16:10:12 UTC 2011


---
 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);
 }
 
-- 
1.7.1




More information about the minicom-devel mailing list