core: in execute, Never fail setting Nice priority

Instead, push to the closest possible Nice priority setting.

Replaces: #11397
This commit is contained in:
Dimitri John Ledkov
2020-01-02 20:50:14 +01:00
committed by Lennart Poettering
parent 6bbeef2042
commit 390902012c
3 changed files with 64 additions and 5 deletions
+2
View File
@@ -200,3 +200,5 @@ assert_cc(TASKS_MAX <= (unsigned long) PID_T_MAX);
})
int pidfd_get_pid(int fd, pid_t *ret);
int setpriority_closest(int priority);