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