From 6e746f1a55e5d94f1a8330d3436a64ed8d6f639b Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Wed, 12 Sep 2018 11:07:00 +0200 Subject: [PATCH] doc, win: improve os.setPriority documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/22817 Fixes: https://github.com/nodejs/node/issues/22799 Reviewed-By: Tobias Nießen Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- doc/api/os.md | 3 +++ test/parallel/test-os-process-priority.js | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/api/os.md b/doc/api/os.md index a0ff5e7ff17..ad5736d7690 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -371,6 +371,9 @@ priority classes, `priority` is mapped to one of six priority constants in mapping may cause the return value to be slightly different on Windows. To avoid confusion, it is recommended to set `priority` to one of the priority constants. +On Windows setting priority to `PRIORITY_HIGHEST` requires elevated user, +otherwise the set priority will be silently reduced to `PRIORITY_HIGH`. + ## os.tmpdir()