Changeset 6617
- Timestamp:
- 04/20/12 17:35:33 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam.c
r6614 r6617 3554 3554 int32_t process_input(uchar *buf, int32_t l, int32_t timeout) 3555 3555 { 3556 int32_t rc, i, pfdcount ;3556 int32_t rc, i, pfdcount, polltime; 3557 3557 struct pollfd pfd[2]; 3558 3558 struct s_client *cl = cur_client(); … … 3567 3567 } 3568 3568 3569 int32_t p_rc = poll(pfd, pfdcount, 0); 3569 polltime = timeout - (time(NULL) - starttime); 3570 if (polltime < 0) { 3571 polltime = 0; 3572 } 3573 3574 int32_t p_rc = poll(pfd, pfdcount, polltime); 3570 3575 3571 3576 if (p_rc < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.