Re: sleep_on_timeout not timing out

Greg Ungerer <[email protected]> Thu, 12 Jun 2008 14:47:17 +1000
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Hi Fahd,

Fahd Abidi wrote:
> I have another issue, I'm using a 2.4 UClinux Kernel and am using the 
> interruptible_sleep_on_timeout function to wait till an interrupt occurs 
> or until the timeout expires. What I am seeing is that I never seem to 
> time out the first time, I hit this function and then have to CTRL+C to 
> interrupt the sleep, upon which my code begins to execute again, it will 
> loop back to this exact same function again and the second and third 
> time it will timeout and pass thru, but not the first. Has anyone seen 
> this issue before?

Can you show your code?
Perhaps you are not setting the timeout correctly?

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [email protected]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.