You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 648 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Hi
Having migrated to OSX I just experienced a problem with Sys.command. It
seems that there is some virual timer working that expires in some cases. So
programs that work usually do not if being called via Sys.commmand. Example
Having migrated to OSX I just experienced a problem with
Sys.command. It seems that there is some virual timer working that
expires in some cases. So programs that work usually do not if being
called via Sys.commmand. Example
The virtual timer in question is the one used for time-slicing in the
threads library. Most Unix systems de-activate the timers before doing
exec() of another program (as per the Unix98 spec), but apparently
MacOS X isn't one of these. Hence the timer is still running in the
exec-ed program, causing it to abort.
One workaround is to use Unix.system (in OCaml 3.02 and up) or
ThreadUnix.system (in earlier releases) instead of Sys.command,
because the former deactivate the timer correctly.
Original bug ID: 648
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hi
Having migrated to OSX I just experienced a problem with Sys.command. It
seems that there is some virual timer working that expires in some cases. So
programs that work usually do not if being called via Sys.commmand. Example
I cannot remember anything of this kind being discussed in the mailing list
Best regards
Axel Poigné
Dipl.Ing. Dr.rer.nat. Axel Poigné http://www.ais.fraunhofer.de/~ap
mailto:poigne@ais.fraunhofer.de
Fraunhofer AiS Tel: (+) 2241 142440
Schloss Birlinghoven Fax: (+) 2241 142324
D-53754 Sankt Augustin
Germany
Have a look at our new language for designing Embedded Software
sE = Java + synchronous Languages (http://www.ais.fraunhofer.de/~ap/sE)
The text was updated successfully, but these errors were encountered: