HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Version 6 and Version 7 of dev-libs/libevent/svn-trunk/1


Ignore:
Timestamp:
03/08/09 15:33:39 (6 years ago)
Author:
mmadia
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • dev-libs/libevent/svn-trunk/1

    v6 v7  
    120120read_cb: read 12 
    121121}}} 
     122 
     123snippet of test/test-eof.c: 
     124{{{ 
     125static void 
     126read_cb(int fd, short event, void *arg) 
     127{ 
     128        char buf[256]; 
     129        int len; 
     130 
     131        len = read(fd, buf, sizeof(buf)); 
     132 
     133        printf("%s: read %d%s\n", __func__, 
     134            len, len ? "" : " - means EOF"); 
     135 
     136        if (len) { 
     137                if (!called) 
     138                        event_add(arg, NULL); 
     139        } else if (called == 1) 
     140                test_okay = 0; 
     141 
     142        called++; 
     143} 
     144}}} 
     145It seems the function hangs somewhere in that printf() statement. 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/