sleep_on_timeout not timing out

View: New views
2 Messages — Rating Filter:   Alert me  

sleep_on_timeout not timing out

by Fahd Abidi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

X-SpamDetect-Info: ------------- Start ASpam results ---------------
X-SpamDetect-Info: This message may be spam. This message BODY has been altered to show you the spam information
X-SpamDetect: *****: 5.100000 DodgySource=2.0, SPF Default Fail=2.5, X-Verify-SMTP present=0.6
X-SpamDetect-Info: ------------- End ASpam results -----------------

Hello,
 
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?
 

Fahd Abidi

coldfire@... Send a post to the list. coldfire-join@... Join the list. coldfire-digest@... Join the list in digest mode. coldfire-leave@... Leave the list.

Re: sleep_on_timeout not timing out

by Greg Ungerer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:     gerg@...
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
---
coldfire@...              Send a post to the list.
coldfire-join@...        Join the list.
coldfire-digest@...    Join the list in digest mode.
coldfire-leave@...     Leave the list.