Skip to content

Commit 9c87c73

Browse files
authored
Revert "chore: skip setting process priority on non-windows os (#2924)"
This reverts commit ab8de31.
1 parent cb5d392 commit 9c87c73

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/BenchmarkDotNet/Extensions/ProcessExtensions.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ public static class ProcessExtensions
2727

2828
public static void EnsureHighPriority(this Process process, ILogger logger)
2929
{
30-
// Process.set_PriorityClass requires root on Unix
31-
if (!OsDetector.IsWindows())
32-
return;
33-
3430
try
3531
{
3632
process.PriorityClass = ProcessPriorityClass.High;
@@ -67,10 +63,6 @@ public static bool TrySetPriority(
6763
if (logger == null)
6864
throw new ArgumentNullException(nameof(logger));
6965

70-
// Process.set_PriorityClass requires root on Unix
71-
if (!OsDetector.IsWindows())
72-
return false;
73-
7466
try
7567
{
7668
process.PriorityClass = priority;

0 commit comments

Comments
 (0)