Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003666OCamlotherlibspublic2005-05-27 16:112013-11-05 16:12
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003666: Bug in the Unix.sleep when used after Graphics.synchronize
DescriptionFull_Name: Damien Bobillot
Version: 3.08.3
OS: Linux (Redhat & Gentoo)
Submission from: (

==== ====
Graphics.open_graph "";
Graphics.synchronize ();
Printf.printf "cou%!";
Unix.sleep 60;
Printf.printf "cou\n%!";

> ocamlopt.opt -c test unix.cmxa graphics.cmxa

When running ./test, the program dont wait 1 minute between printf "cou" calls.

This bug doesn't appear in the Mac OS X version.

I've tried to block all signals (with Unix.sigprocmask Unix.SIG_SETMASK
[-1;-2;...;-20;-21]), but it doesn't solve anything.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
administrator (administrator)
2005-07-20 10:37

It's not a bug, it's a SIGIO signal that interrupts Unix.sleep (under Unix --
MacOS X restarts the syscall). Feature wish: a Graphics library that does not
use signals (but e.g. threads).

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue
2013-11-05 16:12 lpw25 Category OCaml general => OCaml otherlibs
2013-11-05 16:12 lpw25 Description Updated View Revisions
2017-02-23 16:42 doligez Category OCaml otherlibs => otherlibs

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker