Ben Gertzfield <che at debian.org> writes: > If I recall correctly, Perl has just about the exact same problem. > Is there a good way to fix it? I don't know about Perl, but a good fix would be to have the interpreter do the hard work for us. If a system call fails and errno is EINTR, then the signal handler should be called, *and* the syscall should be restarted.