From 870f185b0b56881f57ed1d84a087a8a56e2fef16 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 13 Nov 2002 20:23:14 +0000
Subject: [PATCH] All slurm communications functions converted to be based upon
 common read_config functions. slurmctld converted to common read_config
 functions. slurmd changed only to use changed common function name. reduncant
 function call removed from srun.

---
 src/srun/srun.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/srun/srun.c b/src/srun/srun.c
index 53e1bf0aac8..063b37031db 100644
--- a/src/srun/srun.c
+++ b/src/srun/srun.c
@@ -51,6 +51,7 @@
 #include <src/api/slurm.h>
 
 #include <src/common/log.h>
+#include <src/common/read_config.h>
 #include <src/common/xstring.h>
 #include <src/common/xmalloc.h>
 #include <src/common/xsignal.h>
@@ -135,12 +136,10 @@ main(int ac, char **av)
 	 * verify some basic values
 	 */
 	initialize_and_process_args(ac, av);
-	if (read_slurm_port_config() < 0)
-		error("read_slurm_port_config: %s", slurm_strerror(errno));
 
-	if (getrlimit(RLIMIT_NOFILE,&rlim) == 0) {
+	if (getrlimit(RLIMIT_NOFILE, &rlim) == 0) {
 		rlim.rlim_cur = rlim.rlim_max;
-		setrlimit(RLIMIT_NOFILE,&rlim);
+		setrlimit(RLIMIT_NOFILE, &rlim);
 	}
 
 	/* reinit log with new verbosity
-- 
GitLab