]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Working on status return
authorJean-Marc Pigeon <jmp@safe.c>
Tue, 25 Nov 2025 12:58:23 +0000 (07:58 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Tue, 25 Nov 2025 12:58:23 +0000 (07:58 -0500)
lib/unitls.c

index 65826247e5c6a3d424c2ef546f492f5ef50f4899..22eac5c1935609ad280aec567ef09bdefa65a3b9 100644 (file)
@@ -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