diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-10 19:57:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-02-10 19:57:04 +0000 |
commit | ce342713d6ae95d4766c3d5e8a6a6f5e5c53de23 (patch) | |
tree | b9a52eec9d4aff0c4d89af8aecb4f9dffadafc8d | |
parent | 2b138012a7af900b5034da50ba87a3fa106ebb7b (diff) |
Added debug print when test can't get a buffer. This is probably a fatal
error in the stack but it would be nice to get a message from the
test just in case.
-rw-r--r-- | ttcp/ttcp_orig/ttcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ttcp/ttcp_orig/ttcp.c b/ttcp/ttcp_orig/ttcp.c index 4d5ebfd..0cc1c06 100644 --- a/ttcp/ttcp_orig/ttcp.c +++ b/ttcp/ttcp_orig/ttcp.c @@ -788,6 +788,7 @@ again: cnt = sendto( fd, buf, count, 0, &sinhim, sizeof(sinhim) ); numCalls++; if( cnt<0 && errno == ENOBUFS ) { + printf("ttcp: out of buffers -- delaying\n"); /*JRS*/ delay(18000); errno = 0; goto again; |