Changes between Version 6 and Version 7 of dev-libs/libevent/svn-trunk/1
- Timestamp:
- 03/08/09 15:33:39 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
dev-libs/libevent/svn-trunk/1
v6 v7 120 120 read_cb: read 12 121 121 }}} 122 123 snippet of test/test-eof.c: 124 {{{ 125 static void 126 read_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 }}} 145 It seems the function hangs somewhere in that printf() statement.
