From ce342713d6ae95d4766c3d5e8a6a6f5e5c53de23 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 10 Feb 1999 19:57:04 +0000 Subject: 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. --- ttcp/ttcp_orig/ttcp.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3