summaryrefslogtreecommitdiffstats
path: root/tests/tcpflood.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-01-11 09:39:27 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-01-11 09:39:27 +0100
commitf373968c665e74c3d4dd433ab532ca0630dcd89a (patch)
tree2cf629b014f3995866205438fbc69506b0e74938 /tests/tcpflood.c
parent60ff99d276af30044b1d2295ecb2c4fcb9ae10d8 (diff)
parent25dd212bd0bbd68edf774221429bc59001794a7e (diff)
downloadrsyslog-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/tcpflood.c')
-rw-r--r--tests/tcpflood.c10
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)){}
}
}