We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When solving, signals raised in ocaml are typically ignored.
Code that creates signals:
let run_with_timeout limit f = let set_timer limit = ignore @@ Unix.setitimer Unix.ITIMER_REAL Unix.{ it_value = limit; it_interval = 0.01 } in let unset () = ignore @@ Unix.setitimer Unix.ITIMER_REAL Unix.{ it_value = 0.; it_interval = 0. } in set_timer limit; Sys.set_signal Sys.sigalrm (Sys.Signal_handle (fun _ -> raise Out_of_time)); let f () = try `Ok (f ()) with Out_of_time -> `Timeout in Fun.protect f ~finally:unset
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When solving, signals raised in ocaml are typically ignored.
Code that creates signals:
The text was updated successfully, but these errors were encountered: