Ignore:
Timestamp:
Feb 5, 1999, 12:29:23 AM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
2caa006
Parents:
2f87c843
Message:

Patch from Eric Norum to correct bug induced by select() patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libnetworking/rtems/rtems_glue.c

    r2f87c843 recec2ba  
    297297
    298298        /*
     299         * Show that socket is waiting
     300         */
     301        sb->sb_flags |= SB_WAIT;
     302
     303        /*
    299304         * Release the network semaphore.
    300305         */
     
    330335        register struct sockbuf *sb;
    331336{
    332         rtems_id tid;
    333 
    334         if ((tid = sb->sb_sel.si_pid) != 0) {
    335                 sb->sb_sel.si_pid = 0;
    336                 rtems_event_send (tid, SBWAIT_EVENT);
     337        if (sb->sb_flags & SB_WAIT) {
     338                sb->sb_flags &= ~SB_WAIT;
     339                rtems_event_send (sb->sb_sel.si_pid, SBWAIT_EVENT);
    337340        }
    338341}
Note: See TracChangeset for help on using the changeset viewer.