Ignore SIGINT when processing stdin

Had a similar problem as @timborodin in #126, with this patch the parent process can react to SIGINT again.