From 35d36df8ffdce4a96de63bafdc206b9e7ef09155 Mon Sep 17 00:00:00 2001 From: Jean-Marc Pigeon Date: Mon, 17 Nov 2025 08:07:34 -0500 Subject: [PATCH] Adding dbglive sequence --- lib/devsoc.c | 3 ++- lib/gestcp.c | 4 ++-- lib/lvleml.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/devsoc.c b/lib/devsoc.c index 67471b8..d663602 100644 --- a/lib/devsoc.c +++ b/lib/devsoc.c @@ -445,6 +445,7 @@ while (proceed==true) { } break; case 2 : //Everything is fine + (void) usleep(10000); //make sure link is properly set ready=true; break; default : //SAFE guard @@ -1285,7 +1286,7 @@ soc=(SOCTYP *)socptr; phase=0; proceed=true; while (proceed==true) { - //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase); + (void) rou_dbglive(9,OPEP,"phase='%d'",phase); switch (phase) { case 0 : //checking if soc is available if (soc==(SOCTYP *)0) { diff --git a/lib/gestcp.c b/lib/gestcp.c index 2252aaa..f89a5e6 100644 --- a/lib/gestcp.c +++ b/lib/gestcp.c @@ -73,7 +73,7 @@ got=0; phase=0; proceed=true; while (proceed==true) { - //(void) rou_alert(0,"JMPDBG %s phase='%d' line=<%s>",OPEP,phase,*lineptr); + (void) rou_dbglive(9,OPEP,"phase='%d' line=<%s>",phase,*lineptr); switch (phase) { case 0 : //link still open? if (soc_receive(socptr)<0) { @@ -89,7 +89,7 @@ while (proceed==true) { got=soc_waitforchar(socptr,secwait*1000); switch (got) { case -2 : //remote is disconnectd - (void) rou_alert(0,"%s remote is disconnected",OPEP); + (void) rou_alert(0,"%s remote found disconnected",OPEP); break; case -1 : //trouble? signal? if ((hangup==true)||(reload==true)) diff --git a/lib/lvleml.c b/lib/lvleml.c index c387ac4..0623a31 100644 --- a/lib/lvleml.c +++ b/lib/lvleml.c @@ -2754,7 +2754,7 @@ contact=(CONTYP *)0; phase=0; proceed=true; while (proceed==true) { - //(void) rou_alert(0,"JMPDBG %s phase='%d'",OPEP,phase); + (void) rou_dbglive(9,OPEP,"phase='%d'",phase); switch (phase){ case 0 : //check for binding if (socptr==(SOCPTR *)0) { @@ -2789,7 +2789,7 @@ while (proceed==true) { contact->delay=MXDELAY; contact->privilege=rel_plain; //Standard connection if (debug>1) - contact->delay/=10; //30 sec in debug mode + contact->delay/=10; //30 sec in debug mode (void) getsessid(contact); contact->locname=soc_getaddrinfo(contact->socptr,true,true); contact->locip=soc_getaddrinfo(contact->socptr,true,false); -- 2.47.3