avoid overwriting errno in signal handler

References: https://plus.google.com/+LennartPoetteringTheOneAndOnly/posts/gHSscCJkakd
Signed-off-by: Sami Kerola <kerolasa@iki.fi>