diff options
author | Yang Tse <yangsita@gmail.com> | 2013-01-11 00:03:37 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-01-11 00:03:37 +0100 |
commit | d17f536688bea2e5e5696b741055dde4474152e9 (patch) | |
tree | 838783592a88dba72f7bf4cd440150e0a2bdf56b /tests | |
parent | b35a176c6660a795c90df5ebce040e861fe0ec39 (diff) |
sockfilt.c: log file descriptor number on read/write error
Diffstat (limited to 'tests')
-rw-r--r-- | tests/server/sockfilt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index cc3f622d8..12fc6afbc 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -295,6 +295,7 @@ static ssize_t fullread(int filedes, void *buffer, size_t nbytes) error = errno; if((error == EINTR) || (error == EAGAIN)) continue; + logmsg("reading from file descriptor: %d,", filedes); logmsg("unrecoverable read() failure: (%d) %s", error, strerror(error)); return -1; @@ -340,6 +341,7 @@ static ssize_t fullwrite(int filedes, const void *buffer, size_t nbytes) error = errno; if((error == EINTR) || (error == EAGAIN)) continue; + logmsg("writing to file descriptor: %d,", filedes); logmsg("unrecoverable write() failure: (%d) %s", error, strerror(error)); return -1; |