unix: don't clobber errno in signal handler