Skip to content

Commit

Permalink
Fix victim name shown in notification
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rfjakob committed Feb 23, 2018
1 parent 633486a commit 15679a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ static void userspace_kill(DIR* procdir, int sig, int ignore_oom_score_adj,

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

Expand Down

0 comments on commit 15679a3

Please sign in to comment.