From 4a9906739aaddbaae8b86c14ab4ce108d6569931 Mon Sep 17 00:00:00 2001 From: Tyler Ramer Date: Wed, 11 Sep 2019 09:17:37 -0400 Subject: [PATCH] Fix typo in set_limits - Setting and getting nofile not process limits Authored-by: Tyler Ramer --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index f591a05..cf209e2 100644 --- a/main.c +++ b/main.c @@ -4873,13 +4873,13 @@ set_limits () struct rlimit l; if (getrlimit (RLIMIT_NOFILE, &l) < 0) - error (EXIT_FAILURE, errno, "cannot read process rlimit"); + error (EXIT_FAILURE, errno, "cannot read nofile rlimit"); /* Set the soft limit to the hard limit. */ l.rlim_cur = l.rlim_max; if (setrlimit (RLIMIT_NOFILE, &l) < 0) - error (EXIT_FAILURE, errno, "cannot set process rlimit"); + error (EXIT_FAILURE, errno, "cannot set nofile rlimit"); } int