C99 says that the %15c conversion specifier matches *exactly* 15
characters, so if the process name is shorter than 15 characters,
it is not matched and 0 is returned. Some implementations (such as
glibc) return a match, even with fewer characters than the field
width, but this cannot be assumed.
Instead, use %15[^)], as in upstream commit [0], which matches a
non-empty sequence of characters other than ')'.
[0] ca2b176889
- command line -<num> put back in.
- got rid of annoying "sending signal #" debug message
- updated killall.1
- updated killall usage
- verbose now tells you what signal it is killing with.
- New maintainer
- Uses automake/autoconf to determine things
- License changed to GPL
- signames.h generated better (suggested by Grant Erickson)
- uses getopt() for better command line stuff
- makes less assumptions about process name, closes Debian Bug #53337
- Doesn't use losetup for loop devices in fuser.
- Better selection of process name (thanks to David desJardins)
- supports /proc/cmdline on NetBSD
- killall: new option -g to kill process group instead of process
- pidof: new option -g to show PGID instead of PID (by Florian La Roche)
- pstree: new option -H to highlight process specified by PID