Sometimes killall gets confused between a signal name and a set of
options. This small patch should un-confuse it.
Changes in 23.2
===============
* killall: look at all namespaces by default
+ * killall: Fix -INT option parsing #11
Changes in 23.1
===============
* killall: Remove debug output Debian: #864753
int sig_num;
int optc;
int myoptind;
+ int skip_error=0;
struct passwd *pwent = NULL;
char yt[16];
char ot[16];
ignore_case = 1;
} else {
sig_num = get_signal (argv[optind]+1, "killall");
+ skip_error=1;
}
break;
case 'V':
if (argv[optind-1][1] >= '0' && argv[optind-1][1] <= '9') {
sig_num = atoi(argv[optind-1]+1);
} else {
- usage(NULL);
+ if (skip_error)
+ skip_error=0;
+ else
+ usage(NULL);
}
}
break;