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:
Cedric Roux
2016-06-05 17:39:06 +02:00
parent 9338f06e90
commit 83350a807f
6 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -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;