Add debug assertion on failure to allocate a watchdog

This commit is contained in:
Gregory Nutt 2014-04-21 19:16:12 -06:00
parent 3884117ae9
commit a8cb0ad8f4

View File

@ -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