Archived
cmd/syncthing, lib/config, lib/osutil: Lower process priority (fixes #4628)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4675
This commit is contained in:
1 parent
838c182b5b
commit
c554ffccc9
7 files changed
+142
No files matched your search
@@ -915,6 +915,12 @@ func syncthingMain(runtimeOptions RuntimeOptions) {
|
||||
|
||||
cleanConfigDirectory()
|
||||
|
||||
if cfg.Options().SetLowPriority {
|
||||
if err := osutil.SetLowPriority(); err != nil {
|
||||
l.Warnln("Failed to lower process priority:", err)
|
||||
}
|
||||
}
|
||||
|
||||
code := <-stop
|
||||
|
||||
mainService.Stop()
|
||||
|
||||
Reference in new issue
Block a user