RT-Thread / RT-Thread/rt-thread
DFS timeout issue
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
the poll_do treats non-zero return as timeout, but the function poll_wait_timeout does the opposite.
if (num || istimeout)
break;
if (poll_wait_timeout(pt, msec))
istimeout = 1;
}
static int poll_wait_timeout(struct rt_poll_table *pt, int msec)
{
......
ret = !pt->triggered;
rt_hw_interrupt_enable(level);
return ret;
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the DFS path in poll_do and the poll_wait_timeout implementation shown in the issue. Trace how their return values set istimeout, then verify that the timeout convention is consistent and DFS no longer reports a timeout incorrectly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100