Commit d84715c6 authored by Jonas Termansen's avatar Jonas Termansen

Fix SIGTTIN during tty reading not setting errno to EINTR.

parent 51e13b93
......@@ -671,7 +671,7 @@ ssize_t LogTerminal::read(ioctx_t* ctx, uint8_t* userbuf, size_t count)
return sofar;
}
if ( !RequireForeground(SIGTTIN) )
return sofar ? sofar : -1;
return sofar ? sofar : (errno = EINTR, -1);
}
if ( numeofs )
{
......
Markdown is supported
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