Fixed socket system call interrupt handling.