diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-21 20:27:37 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-04-14 17:21:43 +0200 |
commit | 36880cd61c52f13c6fd284aa23d42d9493d3ab2e (patch) | |
tree | 54df8a9e8ef536db034af9a3f1d6496626ad802b /Process.c | |
parent | 812cfcb94df0fc0e6f9d33e39078454842d61609 (diff) |
Add read-only option
Add command line option to disable all system and process changing
features.
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -482,6 +482,9 @@ bool Process_isTomb(const Process* this) { } bool Process_setPriority(Process* this, int priority) { + if (Settings_isReadonly()) + return false; + int old_prio = getpriority(PRIO_PROCESS, this->pid); int err = setpriority(PRIO_PROCESS, this->pid, priority); |