diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-11 09:39:27 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-11 09:39:27 +0100 |
commit | f373968c665e74c3d4dd433ab532ca0630dcd89a (patch) | |
tree | 2cf629b014f3995866205438fbc69506b0e74938 /tests | |
parent | 60ff99d276af30044b1d2295ecb2c4fcb9ae10d8 (diff) | |
parent | 25dd212bd0bbd68edf774221429bc59001794a7e (diff) | |
download | rsyslog-f373968c665e74c3d4dd433ab532ca0630dcd89a.tar.gz rsyslog-f373968c665e74c3d4dd433ab532ca0630dcd89a.tar.bz2 rsyslog-f373968c665e74c3d4dd433ab532ca0630dcd89a.zip |
Merge branch 'v7-stable-libnet-frag'
Conflicts:
ChangeLog
configure.ac
tools/omfile.c
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tcpflood.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c index 8fd347f1..c3e5b57e 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -258,7 +258,7 @@ int openConnections(void) return setupUDP(); if(bShowProgress) - write(1, " open connections", sizeof(" open connections")-1); + if(write(1, " open connections", sizeof(" open connections")-1)){} # ifdef ENABLE_GNUTLS sessArray = calloc(numConnections, sizeof(gnutls_session_t)); # endif @@ -278,7 +278,7 @@ int openConnections(void) } if(bShowProgress) { lenMsg = sprintf(msgBuf, "\r%5.5d open connections\n", i); - write(1, msgBuf, lenMsg); + if(write(1, msgBuf, lenMsg)) {} } return 0; @@ -303,12 +303,12 @@ void closeConnections(void) return; if(bShowProgress) - write(1, " close connections", sizeof(" close connections")-1); + if(write(1, " close connections", sizeof(" close connections")-1)){} for(i = 0 ; i < numConnections ; ++i) { if(i % 10 == 0) { if(bShowProgress) { lenMsg = sprintf(msgBuf, "\r%5.5d", i); - write(1, msgBuf, lenMsg); + if(write(1, msgBuf, lenMsg)){} } } if(sockArray[i] != -1) { @@ -325,7 +325,7 @@ void closeConnections(void) } if(bShowProgress) { lenMsg = sprintf(msgBuf, "\r%5.5d close connections\n", i); - write(1, msgBuf, lenMsg); + if(write(1, msgBuf, lenMsg)){} } } |