Skip to content
Snippets Groups Projects
Commit c8cce0e6 authored by Moe Jette's avatar Moe Jette
Browse files
parent 6e83ecba
No related branches found
No related tags found
No related merge requests found
......@@ -1791,7 +1791,7 @@ documents those changes that are of interest to users and admins.
* Changes in SLURM 0.2.0-pre2
=============================
-- Fix for reconfigure when public/private key path is changed.
-- Shared memory fixes in slurmd.
- fix for infinite semaphore incrementation bug.
......
......@@ -339,7 +339,7 @@ proc wait_for_job { job_id desired_state } {
while 1 {
set fd [open "|$scontrol -o show job $job_id"]
gets $fd line
close $fd
catch {close $fd}
if {[regexp {JobState\s*=\s*(\w+)} $line foo state] != 1} {
set state "NOT_FOUND"
}
......@@ -642,7 +642,7 @@ proc available_nodes { partition } {
send_user "$sinfo --noheader --partition $partition --state idle,alloc,comp --format %D\n"
set fd [open "|$sinfo --noheader --partition $partition --state idle,alloc,comp --format %D"]
gets $fd line
catch [close $fd]
catch {close $fd}
regexp {\d+} $line available
return $available
}
......@@ -669,7 +669,7 @@ proc default_partition {} {
break
}
}
catch [close $fd]
catch {close $fd}
if {[string length $name] == 0} {
send_user "ERROR: could not identify the default partition"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment