ERESTARTSYS
ERESTARTSYS is a Linux kernel error code used to indicate that a system call was interrupted by a signal and should be restarted if the signal’s disposition allows restart (for example when SA_RESTART is in effect). It is part of the kernel’s mechanism for restartable system calls and is primarily an internal signal-handling aid.
When a process is executing a blocking system call and a signal is delivered, the kernel may
In user space, ERESTARTSYS is largely an implementation detail of the kernel and C library. Glibc and
Compatibility and scope: ERESTARTSYS is Linux-specific and tied to the kernel’s restartable syscall feature. It is