Changes in ??
=============
-2007-04-30 Benno Schulenberg
- * Fixed up NLS for fuser
+2007-04-30 Craig Small
+ * Fixed up NLS for fuser, patch from Benno Schulenberg
+ * killall asks for Signal (procname) if not SIGTERM
Changes in 22.5
===============
* killall.c - kill processes by name or list PIDs
*
* Copyright (C) 1993-2002 Werner Almesberger
- * Copyright (C) 2002-2005 Craig Small
+ * Copyright (C) 2002-2007 Craig Small
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
ignore_case = 0, pidof;
static int
-ask (char *name, pid_t pid)
+ask (char *name, pid_t pid, const int signal)
{
int res;
size_t len;
len = 0;
do {
- printf (_("Kill %s(%s%d) ? (y/N) "), name, process_group ? "pgid " : "",
- pid);
+ if (signal == SIGTERM)
+ printf (_("Kill %s(%s%d) ? (y/N) "), name, process_group ? "pgid " : "",
+ pid);
+ else
+ printf (_("Signal %s(%s%d) ? (y/N) "), name, process_group ? "pgid " : "",
+ pid);
+
fflush (stdout);
if (getline (&line, &len, stdin) < 0)
if (j < i)
continue;
}
- if (interactive && !ask (comm, id))
+ if (interactive && !ask (comm, id, signal))
continue;
if (pidof)
{