unix - OCaml Debugger: Exception uncaught -
i'm trying use ocamldebug. program makes lot of things , write in file. compile , works fine, when use ocamldebug , reach part write file, following exception raised:
uncaught exception: unix.unix_error (5, "waitpid", "") anyone me?
i not @ familiar these issues, when googling see discussion of possible bug in unix module causes uncaught sigchld exceptions. can recreate on os x 10.8.2 system ocaml 4.00.0:
$ ocaml ocaml version 4.00.0 # #load "unix.cma";; # sys.set_signal sys.sigchld (sys.signal_handle ignore);; - : unit = () # unix.system "true";; exception: unix.unix_error (unix.eintr, "waitpid", ""). if don't set sigchld signal ignored, normal termination true. possibly debugger setting signal handling eliciting bug.
how writing output?
Comments
Post a Comment