[linux-dvb] ERESTARTSYS usage
kenneth at linuxtv.org
Sat Aug 6 20:32:28 CEST 2005
Under linux/include/linux/errno.h there is a comment about ERESTARTSYS
and other errno values, that specifically states that those are not
to be seen by userspace programs.
However, this value is frequently returned as the return value from
down_interruptible. This even though include/asm-i386 and some other
include/asm-*'s say that it returns -EINTR, which makes sense, since
the only thing that can innterupt it is a signal.
Would you say that it would be okay to replace all ERESTARTSYS with EINTR?
More information about the linux-dvb