allowing function to be passed to sigaction has gc issues, remove