Commit e2520f81 authored by Jan Kiszka's avatar Jan Kiszka Committed by Philippe Gerum
Browse files

cobalt/posix: Evaluate return code of signal_copyinfo extensions



They may fail as well, requiring us to return that code to the caller of
signal_wait.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent daf445d4
...@@ -349,17 +349,18 @@ done: ...@@ -349,17 +349,18 @@ done:
ret = sys32_put_siginfo(u_si, sip, overrun); ret = sys32_put_siginfo(u_si, sip, overrun);
if (!ret) if (!ret)
/* Allow an extended target to receive more data. */ /* Allow an extended target to receive more data. */
cobalt_call_extension(signal_copyinfo_compat, ret = cobalt_call_extension(signal_copyinfo_compat,
&curr->extref, ret, u_si, sip, &curr->extref, ret, u_si,
overrun); sip, overrun);
} else } else
#endif #endif
{ {
ret = signal_put_siginfo(u_si, sip, overrun); ret = signal_put_siginfo(u_si, sip, overrun);
if (!ret) if (!ret)
/* Allow an extended target to receive more data. */ /* Allow an extended target to receive more data. */
cobalt_call_extension(signal_copyinfo, &curr->extref, ret = cobalt_call_extension(signal_copyinfo,
ret, u_si, sip, overrun); &curr->extref, ret, u_si,
sip, overrun);
} }
out: out:
......
Supports Markdown
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