return an error if the timeout supplied to fdmgr pend event is out of range

This commit is contained in:
Jeff Hill
1992-09-21 17:53:46 +00:00
parent 424e441e0e
commit 94e29868e0
+5
View File
@@ -52,6 +52,8 @@
* fdentry is reused
* .10 joh 091192 added SCCS ID
* .11 joh 092192 added std header
* .11 joh 092192 return an error if the timeout supplied to fdmgr
* pend event is out of range
*
* NOTES:
* .01 write fd callbacks are one shots consistent with the lower
@@ -509,6 +511,9 @@ struct timeval *ptimeout;
pfdctx->select_tmo = FALSE;
palarm = fdmgr_add_timeout(pfdctx, ptimeout, select_alarm ,pfdctx);
if(!palarm){
return ERROR;
}
process_alarm_queue(pfdctx, &t);