GODT-2111: Fix restart on macOS

This commit is contained in:
James Houlahan
2022-11-22 11:29:22 +01:00
committed by Leander Beernaert
parent 82788e39f0
commit f954f89747
2 changed files with 9 additions and 2 deletions

View File

@ -72,7 +72,12 @@ func (restarter *Restarter) Restart() {
env[BridgeCrashCount] = "0"
}
cmd := execabs.Command(restarter.exe, xslices.Join(removeFlagWithValue(os.Args[1:], "parent-pid"), restarter.flags)...) //nolint:gosec
//nolint:gosec
cmd := execabs.Command(
restarter.exe,
xslices.Join(removeFlagWithValue(os.Args[1:], "parent-pid"), restarter.flags)...,
)
l := logrus.WithFields(logrus.Fields{
"exe": restarter.exe,
"crashCount": env[BridgeCrashCount],