Skip to content

Commit ed49778

Browse files
committed
conflicts
1 parent 59b8aee commit ed49778

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

agent/agentexec/cli_linux.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,26 +69,18 @@ func CLI() error {
6969

7070
err = unix.Setpriority(unix.PRIO_PROCESS, 0, *nice)
7171
if err != nil {
72-
<<<<<<< Updated upstream
7372
// We alert the user instead of failing the command since it can be difficult to debug
7473
// for a template admin otherwise. It's quite possible (and easy) to set an
7574
// inappriopriate value for niceness.
76-
printfStdErr("failed to adjust niceness to %q: %v", *nice, err)
77-
=======
78-
return xerrors.Errorf("set nice score for cmd %v: %w", args, err)
79-
>>>>>>> Stashed changes
75+
printfStdErr("failed to adjust niceness to %d for cmd %+v: %v", *nice, args, err)
8076
}
8177

8278
err = writeOOMScoreAdj(*oom)
8379
if err != nil {
84-
<<<<<<< Updated upstream
8580
// We alert the user instead of failing the command since it can be difficult to debug
8681
// for a template admin otherwise. It's quite possible (and easy) to set an
8782
// inappriopriate value for oom_score_adj.
88-
printfStdErr("failed to adjust oom score to %q: %v", *nice, err)
89-
=======
90-
return xerrors.Errorf("set oom score for cmd %v: %w", args, err)
91-
>>>>>>> Stashed changes
83+
printfStdErr("failed to adjust oom score to %d for cmd %+v: %v", *oom, args, err)
9284
}
9385

9486
path, err := exec.LookPath(args[0])

0 commit comments

Comments
 (0)