Make syscalls signal safe.