diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-14 09:38:32 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-14 09:38:32 +0100 |
commit | 85358a2df39f662d36f735b77be932f7995f3e75 (patch) | |
tree | 3ad898540666d4e89565e7af380f00d32fe32f9d /tests/tcpflood.c | |
parent | 3cf002b8ad6f4126dc9401bed8916e7d30a75579 (diff) | |
parent | 33366f2f1e271f47edeed75f69d9885171e61ea0 (diff) | |
download | rsyslog-85358a2df39f662d36f735b77be932f7995f3e75.tar.gz rsyslog-85358a2df39f662d36f735b77be932f7995f3e75.tar.bz2 rsyslog-85358a2df39f662d36f735b77be932f7995f3e75.zip |
Merge branch 'v5-beta' into v5-devel
Diffstat (limited to 'tests/tcpflood.c')
-rw-r--r-- | tests/tcpflood.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c index a37845a3..3e7053c9 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -355,6 +355,7 @@ int main(int argc, char *argv[]) int ret = 0; int opt; struct sigaction sigAct; + struct rlimit maxFiles; static char buf[1024]; srand(time(NULL)); /* seed is good enough for our needs */ @@ -431,6 +432,9 @@ int main(int argc, char *argv[]) maxFiles.rlim_max = numConnections + 20; if(setrlimit(RLIMIT_NOFILE, &maxFiles) < 0) { perror("setrlimit to increase file handles failed"); + fprintf(stderr, + "could net set sufficiently large number of " + "open files for required connection count!\n"); exit(1); } } |