sysutils/slurm-wlm: Revert error file to stderr when redirect no longer needed

Fixes an oversight in a new patch for 20.02.1
This commit is contained in:
Jason W. Bacon
2020-04-15 12:50:33 +00:00
parent be01f7c0f6
commit 431f2257d1
2 changed files with 6 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
PORTNAME= slurm
DISTVERSION= 20.02.1
PORTREVISION= 1
CATEGORIES= sysutils python
MASTER_SITES= https://download.schedmd.com/slurm/
PKGNAMESUFFIX= -wlm

View File

@@ -16,7 +16,7 @@
#include "slurm/slurm.h"
#include "slurm/slurm_errno.h"
#include "src/common/log.h"
@@ -179,6 +188,52 @@ proctrack_p_wait(uint64_t cont_id)
@@ -179,6 +188,55 @@ proctrack_p_wait(uint64_t cont_id)
return SLURM_SUCCESS;
}
@@ -47,7 +47,10 @@
+ proc_list = procstat_getprocs(proc_info, KERN_PROC_PGRP, cont_id,
+ (unsigned int *) &pid_count);
+ if (procstat_err)
+ {
+ err_set_file(NULL);
+ fclose(procstat_err);
+ }
+
+ if (pid_count > 0) {
+ xrecalloc(pid_array, sizeof(pid_t), pid_count);
@@ -69,7 +72,7 @@
extern int
proctrack_p_get_pids(uint64_t cont_id, pid_t **pids, int *npids)
{
@@ -241,3 +296,4 @@ fini: *pids = pid_array;
@@ -241,3 +299,4 @@ fini: *pids = pid_array;
*npids = pid_count;
return rc;
}