diff --git a/mxqd.c b/mxqd.c index 1a55545..3f572a8 100644 --- a/mxqd.c +++ b/mxqd.c @@ -1018,17 +1018,6 @@ static void exec_reaper(struct mxq_server *server,struct mxq_group_list *glist, mx_log_err("job=%s(%d):%lu:%lu setrlimit(RLIMIT_CORE, ...) failed: %m", group->user_name, group->user_uid, group->group_id, job->job_id); - /* set single threaded time limits */ - if (group->job_threads == 1) { - /* set cpu time limits - hardlimit is 105% of softlimit */ - rlim.rlim_cur = group->job_time*60; - rlim.rlim_cur = group->job_time*63; - - if (setrlimit(RLIMIT_CPU, &rlim) == -1) - mx_log_err("job=%s(%d):%lu:%lu setrlimit(RLIMIT_CPU, ...) failed: %m", - group->user_name, group->user_uid, group->group_id, job->job_id); - } - if (initgroups(passwd->pw_name, group->user_gid) == -1) { mx_log_err("job=%s(%d):%lu:%lu initgroups() failed: %m", group->user_name, group->user_uid, group->group_id, job->job_id);