Index: [thread] [date] [subject] [author]
  From: Steve Cheng <elmert@ipoline.com>
  To  : ggi-develop@eskimo.com
  Date: Tue, 17 Aug 1999 11:08:11 -0400 (EDT)

Re: sleep dunno work

On Tue, 17 Aug 1999, Erik Thiele wrote:

> the sleep() system call does not work
> (returns immediately)
> if ggi visual is initialized
> (Xlib target)
> 
> is this a bug or a misfeature ?
> 
> once ggiClose and ggiExit  the sleep call works again

sleep() fails because it is being interrupted by the signals caused by
manual syncing.  The only way I can think of to get around this is to
use select(2) or giiEventSelect(), but getting interrupted 20 times per
second doesn't help you much, does it? :(

(It shouldn't happen on the XLIB target though...)

If you really want to sleep, the best way is to simply turn off SYNC
mode (use ggiSetFlags(3)).

-- 
Steve Cheng

email: steve@ggi-project.org
www: <http://shell.ipoline.com/~elmert/>;

Index: [thread] [date] [subject] [author]