Ticket #6 (closed defect: fixed)
router ioctl fix
| Reported by: | smoku | Owned by: | smoku |
|---|---|---|---|
| Priority: | major | Component: | General |
| Version: | 2.1 | Keywords: | |
| Cc: | Tracforge_linkmap: | ||
| Blocking: | Blocked By: |
Description (last modified by smoku) (diff)
every single ioctl call from router produces bad file descriptor error. Here's a diff to fix the problem:
> @@ -847,7 +847,7 @@
> /* they did something */
> comp->last_activity = time(NULL);
>
> - ioctl(fd, FIONREAD, &nbytes);
> + ioctl(fd->fd, FIONREAD, &nbytes);
> if(nbytes == 0) {
> sx_kill(comp->s);
> return 0;
Change History
Note: See
TracTickets for help on using
tickets.
