Skip to content
Commit 70cb9793 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

VT_WAITACTIVE: Avoid returning EINTR when not necessary



We should generally prefer to return ERESTARTNOHAND rather than EINTR,
so that processes with unhandled signals that get ignored don't return
EINTR.

This can help with X startup issues:

    Fatal server error:
    xf86OpenConsole: VT_WAITACTIVE failed: Interrupted system call

although the real fix is having the X server always retry EINTR
regardless (since EINTR does happen for signals that have handlers
installed). Keithp has a patch for that.

Regardless, ERESTARTNOHAND is the correct thing to use.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fc8b28a6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment