Add some tests of signal handling, and support SIGUSR*.