From f5743fce36730b54c4d19ecd0527217e435a03f5 Mon Sep 17 00:00:00 2001 From: David Bigagli <david@schedmd.com> Date: Tue, 1 Apr 2014 16:00:13 -0700 Subject: [PATCH] Remove trailing spaces and empty tabs. --- src/common/xcgroup.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/common/xcgroup.c b/src/common/xcgroup.c index 403cf51ddf4..d2fb81afe3c 100644 --- a/src/common/xcgroup.c +++ b/src/common/xcgroup.c @@ -563,18 +563,19 @@ static int cgroup_procs_writable (xcgroup_t *cg) return (rc); } -// This call is not intended to be used to move thread pids +/*This call is not intended to be used to move thread pids + */ int xcgroup_add_pids(xcgroup_t* cg, pid_t* pids, int npids) { int fstatus = XCGROUP_ERROR; char* path = NULL; - + // If possible use cgroup.procs to add the processes atomically if (cgroup_procs_writable (cg)) xstrfmtcat (path, "%s/%s", cg->path, "cgroup.procs"); else xstrfmtcat (path, "%s/%s", cg->path, "tasks"); - + fstatus = _file_write_uint32s(path, (uint32_t*)pids, npids); if (fstatus != XCGROUP_SUCCESS) debug2("unable to add pids to '%s'", cg->path); @@ -583,20 +584,21 @@ int xcgroup_add_pids(xcgroup_t* cg, pid_t* pids, int npids) return fstatus; } -// This call is not intended to be used to get thread pids +/* This call is not intended to be used to get thread pids + */ int xcgroup_get_pids(xcgroup_t* cg, pid_t **pids, int *npids) { int fstatus = XCGROUP_ERROR; char* path = NULL; - + if (pids == NULL || npids == NULL) return SLURM_ERROR; - + if (cgroup_procs_readable (cg)) xstrfmtcat (path, "%s/%s", cg->path, "cgroup.procs"); else xstrfmtcat (path, "%s/%s", cg->path, "tasks"); - + fstatus = _file_read_uint32s(path, (uint32_t**)pids, npids); if (fstatus != XCGROUP_SUCCESS) debug2("unable to get pids of '%s'", cg->path); -- GitLab