Add debug assertion on failure to allocate a watchdog
This commit is contained in:
parent
3884117ae9
commit
a8cb0ad8f4
1 changed files with 2 additions and 0 deletions
|
|
@ -260,6 +260,8 @@ int sigtimedwait(FAR const sigset_t *set, FAR struct siginfo *info,
|
|||
/* Create a watchdog */
|
||||
|
||||
rtcb->waitdog = wd_create();
|
||||
DEBUGASSERT(rtcb->waitdog);
|
||||
|
||||
if (rtcb->waitdog)
|
||||
{
|
||||
/* This little bit of nonsense is necessary for some
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue