ada: Add an assert in Posix Interrupt_Wait
commit9c70186d84b895340771fcf9df54e3ed6f1a4e48
authorClément Chigot <chigot@adacore.com>
Tue, 13 Jun 2023 08:51:17 +0000 (13 10:51 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Fri, 28 Jul 2023 07:28:15 +0000 (28 09:28 +0200)
tree57392b7f5cb86188db6a9428e5a7ac6e757e7531
parent358e289d37b011ff113f5c70dee777c15679743a
ada: Add an assert in Posix Interrupt_Wait

All functions but Interrupt_Wait in s-inmaop__posix are checking the
result of their syscalls with an assert. However, any return code of
sigwait different than 0 means that something went wrong for it.

From sigwait man:
> RETURN VALUE
>      On success, sigwait() returns 0.  On  error,  it  returns  a
>      positive error number (listed in ERRORS).

gcc/ada/

* libgnarl/s-inmaop__posix.adb: Add assert after sigwait in
Interrupt_Wait
gcc/ada/libgnarl/s-inmaop__posix.adb