Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
01565163
Commit
01565163
authored
Mar 12, 2010
by
Francois Bobot
Browse files
on utilise reellement le timeout
parent
55605308
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/output/call_provers.ml
View file @
01565163
...
...
@@ -69,7 +69,7 @@ let timed_sys_command ?stdin ?(debug=false) ?timeout cmd =
let
t0
=
Unix
.
times
()
in
let
cmd
=
match
timeout
with
|
None
->
Format
.
sprintf
"%s 2>&1"
cmd
|
Some
timeout
->
Format
.
sprintf
"%s"
(*
!cpulimit timeout
*)
cmd
in
|
Some
timeout
->
Format
.
sprintf
"%s
%d %s 2>&1
"
!
cpulimit
timeout
cmd
in
if
debug
then
Format
.
eprintf
"command line: %s@."
cmd
;
let
(
cin
,
cout
)
as
p
=
Unix
.
open_process
cmd
in
(
match
stdin
with
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment