diff options
| author | 2009-05-18 00:39:11 +0200 | |
|---|---|---|
| committer | 2009-05-18 00:39:11 +0200 | |
| commit | a04c396a21d29da832de21c693da18e6cbf56a13 (patch) | |
| tree | 8edbeb12fb1fdc6a3b555e8cd7de6bb5b53e860b /src | |
| parent | b8d58d4a9b10f35ff0b72c7348eb329eb4465feb (diff) | |
| download | usbmuxd-a04c396a21d29da832de21c693da18e6cbf56a13.tar.gz usbmuxd-a04c396a21d29da832de21c693da18e6cbf56a13.tar.bz2 | |
mall change to recv_buf_timeout for easier debugging.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sock_stuff.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sock_stuff.c b/src/sock_stuff.c index b51d6ba..137375d 100644 --- a/src/sock_stuff.c +++ b/src/sock_stuff.c | |||
| @@ -287,7 +287,10 @@ int recv_buf_timeout(int fd, void *data, size_t length, int flags, | |||
| 287 | // but this is an error condition | 287 | // but this is an error condition |
| 288 | if (verbose >= 3) | 288 | if (verbose >= 3) |
| 289 | fprintf(stderr, "%s: fd=%d recv returned 0\n", __func__, fd); | 289 | fprintf(stderr, "%s: fd=%d recv returned 0\n", __func__, fd); |
| 290 | return -1; | 290 | return -EAGAIN; |
| 291 | } | ||
| 292 | if (result < 0) { | ||
| 293 | return -errno; | ||
| 291 | } | 294 | } |
| 292 | return result; | 295 | return result; |
| 293 | } | 296 | } |
