Skip to content

Commit cbf0bb2

Browse files
committed
Also print oom_score_adj when killing something
Should make diagnosing things like earlyoom kills wrong processes first #344 easier.
1 parent 16dc1b3 commit cbf0bb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kill.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,8 @@ void kill_process(const poll_loop_args_t* args, int sig, const procinfo_t* victi
624624
}
625625
// sig == 0 is used as a self-test during startup. Don't notify the user.
626626
if (sig != 0 || enable_debug) {
627-
warn("sending %s to process %d uid %d \"%s\": oom_score %d, VmRSS %lld MiB, cmdline \"%s\"\n",
628-
sig_name, victim->pid, victim->uid, victim->name, victim->oom_score, victim->VmRSSkiB / 1024,
627+
warn("sending %s to process %d uid %d \"%s\": oom_score %d, oom_score_adj %d, VmRSS %lld MiB, cmdline \"%s\"\n",
628+
sig_name, victim->pid, victim->uid, victim->name, victim->oom_score, victim->oom_score_adj, victim->VmRSSkiB / 1024,
629629
victim->cmdline);
630630
}
631631

0 commit comments

Comments
 (0)