Jakob Borg and GitHub
b10d106a55
all: Modernize error wrapping ( #8491 )
...
This replaces old style errors.Wrap with modern fmt.Errorf and removes
the (direct) dependency on github.com/pkg/errors. A couple of cases are
adjusted by hand as previously errors.Wrap(nil, ...) would return nil,
which is not what fmt.Errorf does.
2022-08-16 10:01:49 +02:00
Jakob Borg and GitHub
d47745a86b
all: Update build constraints to Go 1.17 style ( #7894 )
2021-08-17 10:10:41 +02:00
Audrius Butkevicius and GitHub
720e8dedbc
lib/osutil: Use unix lowprio implementation on Android ( #4844 )
2018-03-27 22:03:09 +01:00
Jakob Borg and Audrius Butkevicius
3af4164c8b
lib/osutil: Don't attempt to reduce our niceness level ( fixes #4681 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4682
2018-01-18 08:34:56 +00:00
Jakob Borg
e147db5233
lib/osutil: Check PGID before trying to set it ( fixes #4679 )
...
Fixes "permission denied" return when are already process group /
session leader.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4678
2018-01-17 12:32:11 +00:00
Jakob Borg and Audrius Butkevicius
c554ffccc9
cmd/syncthing, lib/config, lib/osutil: Lower process priority ( fixes #4628 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4675
2018-01-15 17:11:14 +00:00