Skip to content

Commit 15679a3

Browse files
committed
Fix victim name shown in notification
From #52 : On Ubuntu 16.04, running as user (not as service) the notify-osd notification reported the correct PID but the wrong process name "gnome-system-monitor" when in fact killing whatsapp. The terminal output shows the correct PID and name. Reason is that the wrong variable was used.
1 parent 633486a commit 15679a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kill.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static void userspace_kill(DIR* procdir, int sig, int ignore_oom_score_adj,
214214

215215
char notif_args[200];
216216
snprintf(notif_args, sizeof(notif_args),
217-
"-i dialog-warning 'earlyoom' 'Killing process %d %s'", victim_pid, name);
217+
"-i dialog-warning 'earlyoom' 'Killing process %d %s'", victim_pid, victim_name);
218218
maybe_notify(notif_command, notif_args);
219219
}
220220

0 commit comments

Comments
 (0)