diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-09-08 16:16:29 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-09-08 16:16:29 +0200 |
commit | bd4dae01104127b8b92410ea8a126d8d8d0dfcf2 (patch) | |
tree | 094826d4ff65a47a8af9b7d7974603577046d6e5 /src/basic/process-util.h | |
parent | e0ff144df1d7205311cb8174e948e56aae102fb6 (diff) |
util-lib: wrap personality() to fix up broken glibc error handling (#6766)
glibc appears to propagate different errors in different ways, let's fix
this up, so that our own code doesn't get confused by this.
See #6752 + #6737 for details.
Fixes: #6755
Diffstat (limited to 'src/basic/process-util.h')
-rw-r--r-- | src/basic/process-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h index 339dc9f59..71b473232 100644 --- a/src/basic/process-util.h +++ b/src/basic/process-util.h @@ -100,6 +100,7 @@ bool oom_score_adjust_is_valid(int oa); unsigned long personality_from_string(const char *p); const char *personality_to_string(unsigned long); +int safe_personality(unsigned long p); int opinionated_personality(unsigned long *ret); int ioprio_class_to_string_alloc(int i, char **s); |