print_signames_and_exit -> print_signames (because of "ash calls kill_main")

This commit is contained in:
Denis Vlasenko
2007-09-30 16:32:01 +00:00
parent 605b20e277
commit a4f4de9b7e
4 changed files with 8 additions and 6 deletions

View File

@ -58,7 +58,8 @@ int kill_main(int argc, char **argv)
if (arg[1] == 'l' && arg[2] == '\0') {
if (argc == 1) {
/* Print the whole signal list */
print_signames_and_exit();
print_signames();
return 0;
}
/* -l <sig list> */
while ((arg = *++argv)) {

View File

@ -87,8 +87,10 @@ int pgrep_main(int argc, char **argv)
scan_mask |= PSSCAN_ARGVN;
if (pkill) {
if (OPT_LIST) /* -l: print the whole signal list */
print_signames_and_exit();
if (OPT_LIST) { /* -l: print the whole signal list */
print_signames();
return 0;
}
if (first_arg && first_arg[0] == '-') {
signo = get_signum(&first_arg[1]);
if (signo < 0) /* || signo > MAX_SIGNUM ? */