Add signal.siginterrupt to restart interrupted system calls