fix JRuby builds

JRuby has its own handler for USR1 so use USR2 in the tests