chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prep v232: Update root and build files to upstream v232 tag.
[elogind.git]
/
src
/
basic
/
process-util.h
diff --git
a/src/basic/process-util.h
b/src/basic/process-util.h
index 6cf3a40b1f6dd83cd3dd626fb2fd2ff0d68b9b41..6a41db18485c9910ee872758fc24577acaf3e39a 100644
(file)
--- a/
src/basic/process-util.h
+++ b/
src/basic/process-util.h
@@
-113,3
+113,7
@@
int sched_policy_from_string(const char *s);
void valgrind_summary_hack(void);
int pid_compare_func(const void *a, const void *b);
+
+static inline bool nice_is_valid(int n) {
+ return n >= PRIO_MIN && n < PRIO_MAX;
+}