fix signal names

* don't use hardcoded signal names, use sys_signame[] instead