| Anonymous | Login | Signup for a new account | 2013-05-19 16:08 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||
| 0003666 | OCaml | OCaml general | public | 2005-05-27 16:11 | 2005-07-20 10:37 | ||||||
| Reporter | administrator | ||||||||||
| Assigned To | |||||||||||
| Priority | normal | Severity | feature | Reproducibility | always | ||||||
| Status | acknowledged | Resolution | open | ||||||||
| Platform | OS | OS Version | |||||||||
| Product Version | |||||||||||
| Target Version | Fixed in Version | ||||||||||
| Summary | 0003666: Bug in the Unix.sleep when used after Graphics.synchronize | ||||||||||
| Description | Full_Name: Damien Bobillot Version: 3.08.3 OS: Linux (Redhat & Gentoo) Submission from: 132.227.81.31 (132.227.81.31) ==== test.ml ==== Graphics.open_graph ""; Graphics.synchronize (); Printf.printf "cou%!"; Unix.sleep 60; Printf.printf "cou\n%!"; ============= > ocamlopt.opt -c test unix.cmxa graphics.cmxa test.ml 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. | ||||||||||
| Tags | No tags attached. | ||||||||||
| Attached Files | |||||||||||
Notes |
|
|
(0000261) 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 | |
| Copyright © 2000 - 2011 MantisBT Group |