Ticket #6 (closed defect: fixed)

Opened 20 months ago

Last modified 20 months ago

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

Changed 20 months ago by smoku

  • description modified (diff)

Changed 20 months ago by smoku

  • status changed from new to assigned

Changed 20 months ago by smoku

  • status changed from assigned to closed
  • resolution set to fixed

(In [137]) Fixed fd target for ioctls. Fixes #6

Note: See TracTickets for help on using tickets.