Changeset 4b6e1b2 for lib/ior-thread.c


Ignore:
Timestamp:
01/18/10 18:10:23 (12 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
7f2612c
Parents:
5778738
Message:

Make sure we always set errno

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ior-thread.c

    r15e9390 r4b6e1b2  
    126126                if (INBUFFER(state).len <1) {
    127127
    128                         if (copied<1)
     128                        if (copied<1) {
     129                                errno=EIO; /* FIXME: Preserve the errno from the other thread */
    129130                                copied = INBUFFER(state).len;
     131                        }
    130132
    131133                        pthread_mutex_unlock(&DATA(state)->mutex);
Note: See TracChangeset for help on using the changeset viewer.