reading a socket does not abort anymore
fullread has been changed, so get_event too, and the callers also for the moment the callers crash, enb.c will be a bit more clever, the others to see...
This commit is contained in:
@@ -118,7 +118,7 @@ int fullread(int fd, void *_buf, int count)
|
||||
int l;
|
||||
while (count) {
|
||||
l = read(fd, buf, count);
|
||||
if (l <= 0) { printf("read socket problem\n"); abort(); }
|
||||
if (l <= 0) return -1;
|
||||
count -= l;
|
||||
buf += l;
|
||||
ret += l;
|
||||
|
||||
Reference in New Issue
Block a user