From 36880cd61c52f13c6fd284aa23d42d9493d3ab2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 21 Jan 2021 20:27:37 +0100 Subject: Add read-only option Add command line option to disable all system and process changing features. --- Process.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Process.c') diff --git a/Process.c b/Process.c index 1ca942a3..e7431cec 100644 --- a/Process.c +++ b/Process.c @@ -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); -- cgit v1.2.3