From 667b45d1bd4ab5bcd682df7e1feb21a1b4b0dc03 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Thu, 12 May 2005 23:22:09 +0000
Subject: [PATCH] make sure user can get to the configure part of smap if slurm
 is down.

---
 src/smap/smap.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/smap/smap.c b/src/smap/smap.c
index 1457e5f290e..d570ca729ff 100644
--- a/src/smap/smap.c
+++ b/src/smap/smap.c
@@ -77,7 +77,13 @@ int main(int argc, char *argv[])
 	if (error_code) {
 		printf("slurm_load_node: %s\n", 
 		       slurm_strerror(slurm_get_errno()));
-		exit(0);
+#ifdef HAVE_BGL
+		if(params.display == COMMANDS)
+			pa_init(NULL);
+		else
+#endif
+			exit(0);
+
 	} else {
 		pa_init(new_node_ptr);
 	}	
-- 
GitLab