View | Details | Raw Unified | Return to ticket 13624 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/slurmd/slurmstepd/ulimits.c (-3 / +9 lines)
Lines 261-268 _set_limit(char **env, slurm_rlimits_info_t *rli) Link Here
261
		rlim_to_string (env_value,  req, sizeof (req)) );
261
		rlim_to_string (env_value,  req, sizeof (req)) );
262
262
263
	r.rlim_cur = (rlim_t) env_value;
263
	r.rlim_cur = (rlim_t) env_value;
264
	if (r.rlim_max < r.rlim_cur)
264
	if ((!u_req_propagate) && (r.rlim_cur > r.rlim_max)) {
265
		r.rlim_max = r.rlim_cur;
265
		verbose("%s: %-14s: reducing req:%s to max:%s",
266
			__func__,
267
			rlimit_name,
268
			rlim_to_string(env_value, req, sizeof(req)),
269
			rlim_to_string(r.rlim_max, max, sizeof(max)));
270
271
		r.rlim_cur = r.rlim_max;
272
	}
266
273
267
	if (setrlimit( rli->resource, &r ) < 0) {
274
	if (setrlimit( rli->resource, &r ) < 0) {
268
		/*
275
		/*
269
- 

Return to ticket 13624