use an enum for SIGVAL_* constants
use an enum for SIGVAL_* constants

and give the enum type the name signum_state so that it can be used
instead of int to improve code readability and correctness.

rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir