mirror of
https://github.com/winsw/winsw.git
synced 2025-12-10 18:37:28 +08:00
Backport diagnosability updates (#736)
This commit is contained in:
@@ -187,7 +187,14 @@ namespace WinSW.Util
|
||||
|
||||
if (priority != null)
|
||||
{
|
||||
processToStart.PriorityClass = priority.Value;
|
||||
try
|
||||
{
|
||||
processToStart.PriorityClass = priority.Value;
|
||||
}
|
||||
catch (InvalidOperationException)
|
||||
{
|
||||
// exited
|
||||
}
|
||||
}
|
||||
|
||||
// Redirect logs if required
|
||||
|
||||
Reference in New Issue
Block a user