From 35249f5d87a1c59ba46c1ff1b6bfa2e2eba8238c Mon Sep 17 00:00:00 2001 From: Jean-Marc Pigeon Date: Tue, 25 Nov 2025 07:58:23 -0500 Subject: [PATCH] Working on status return --- lib/unitls.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/unitls.c b/lib/unitls.c index 6582624..22eac5c 100644 --- a/lib/unitls.c +++ b/lib/unitls.c @@ -1013,9 +1013,13 @@ while (proceed==true) { case -1 : //Polling error (void) rou_alert(0,"%s Polling error (error=<%s>)",OPEP,strerror(errno)); break; - case 0 : //polling time out - //nothing to do - (void) rou_alert(0,"%s Polling timeout (error=<%s>)",OPEP,strerror(errno)); + case 0 : //polling timeout + switch (errno) { + default : //lets say nothind to do + (void) rou_alert(0,"%s Polling timeout (error='%d'-<%s>)", + OPEP,errno,strerror(errno)); + break; + } break; case 1 : //char is available. //nothing to do -- 2.47.3