Kernel: Ignore SA_RESTART flag on sigaction

This is a big hack but a lot of ports set this flag. This seems really
annoying to implement properly
This commit is contained in:
Bananymous 2025-01-24 19:34:22 +02:00
parent c6cd185cb5
commit 2a16a67aed
1 changed files with 6 additions and 1 deletions

View File

@ -2013,8 +2013,13 @@ namespace Kernel
if (act)
{
if (act->sa_flags)
if (act->sa_flags == SA_RESTART)
dwarnln("FIXME: sigaction ignoring SA_RESTART", signal, act->sa_flags);
else if (act->sa_flags)
{
dwarnln("TODO: sigaction({}, {H})", signal, act->sa_flags);
return BAN::Error::from_errno(ENOTSUP);
}
m_signal_handlers[signal] = *act;
}