node port of https://github.com/chad/sigsurv