[PATCH 2/2] Increase serial port open timeout

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


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




More information about the minicom-devel mailing list