Changeset 0643693 in rtems


Ignore:
Timestamp:
Jun 11, 1999, 2:06:13 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a6f3cff
Parents:
9a6d32b
Message:

Patch from Eric Norum <eric@…> to fix bug reported by
Ian Lance Taylor <ian@…>:

Ian Lance Taylor wrote:

In rtems-19990528, sbwait sets SB_WAIT in sb_flags. sowakeup checks
it. Why doesn't socket_select set it?

I don't know that this is a bug--I haven't tried to create a test
case. However, it certainly looks odd.

Ian

Yes, there's a bug there. Sorry about that.
It was introduced when I did some cleanup on the sleep/wakeup handling
in rtems_glue.c.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libnetworking/rtems/rtems_select.c

    r9a6d32b r0643693  
    5757                if (soreadable(so))
    5858                        return (1);
     59                so->so_rcv.sb_flags |= SB_WAIT;
    5960                so->so_rcv.sb_sel.si_pid = tid;
    6061                break;
     
    6364                if (sowriteable(so))
    6465                        return (1);
     66                so->so_rcv.sb_flags |= SB_WAIT;
    6567                so->so_snd.sb_sel.si_pid = tid;
    6668                break;
  • c/src/lib/libnetworking/rtems/rtems_select.c

    r9a6d32b r0643693  
    5757                if (soreadable(so))
    5858                        return (1);
     59                so->so_rcv.sb_flags |= SB_WAIT;
    5960                so->so_rcv.sb_sel.si_pid = tid;
    6061                break;
     
    6364                if (sowriteable(so))
    6465                        return (1);
     66                so->so_rcv.sb_flags |= SB_WAIT;
    6567                so->so_snd.sb_sel.si_pid = tid;
    6668                break;
  • c/src/libnetworking/rtems/rtems_select.c

    r9a6d32b r0643693  
    5757                if (soreadable(so))
    5858                        return (1);
     59                so->so_rcv.sb_flags |= SB_WAIT;
    5960                so->so_rcv.sb_sel.si_pid = tid;
    6061                break;
     
    6364                if (sowriteable(so))
    6465                        return (1);
     66                so->so_rcv.sb_flags |= SB_WAIT;
    6567                so->so_snd.sb_sel.si_pid = tid;
    6668                break;
  • cpukit/libnetworking/rtems/rtems_select.c

    r9a6d32b r0643693  
    5757                if (soreadable(so))
    5858                        return (1);
     59                so->so_rcv.sb_flags |= SB_WAIT;
    5960                so->so_rcv.sb_sel.si_pid = tid;
    6061                break;
     
    6364                if (sowriteable(so))
    6465                        return (1);
     66                so->so_rcv.sb_flags |= SB_WAIT;
    6567                so->so_snd.sb_sel.si_pid = tid;
    6668                break;
Note: See TracChangeset for help on using the changeset viewer.