diff --git a/proc/libprocfs.sym b/proc/libprocfs.sym index d8bf6b73..eed28b17 100644 --- a/proc/libprocfs.sym +++ b/proc/libprocfs.sym @@ -62,6 +62,7 @@ global: signal_number_to_name; smp_num_cpus; sprint_uptime; + strtosig; tty_to_dev; unix_print_signals; uptime; diff --git a/skill.c b/skill.c index d19dab7c..866e8fb2 100644 --- a/skill.c +++ b/skill.c @@ -361,9 +361,14 @@ static void __attribute__ ((__noreturn__)) switch (i) { case 'l': if (optarg) { - /* FIXME */ - errx(EXIT_FAILURE, - "signal name <-> number conversion is not implemented"); + char *s; + s = strtosig(optarg); + if (s) + printf("%s\n", s); + else + warnx(_("unknown signal name %s"), + optarg); + free(s); } else { unix_print_signals(); }