delorie.com/djgpp/bugs/show.cgi   search  
Bug 000345

When Created: 10/14/2001 22:42:50
Against DJGPP version: 2.03
By whom: drat911@nwez.com
Abstract: sleep() sleeps endlessly with DJGPP
#include <conio.h>
....
sleep(5000);


When using sleep() in DJGPP, it will not sleep for the amount of milliseconds. When I use sleep(1), it will sleep endlessly...
I've compiled it under Dev C++ and MS VC++ 6, and it works fine, so it seems that sleep() isn't working properly in DJGPP. Any solutions/fixes, > drat911@nwez.com

Note added: 10/15/2001 14:38:04
By whom: eliz@is.elta.co.il
`sleep' accepts an argument measured in seconds, not in milliseconds.

5000 seconds might indeed look like an eternity...

I'm closing this report.

Closed on 10/15/2001 14:38:59: Not a bug, expected behavior
By whom: eliz@is.elta.co.il



  webmaster     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010