Skip to content

Commit

Permalink
Fix debug logs showing up regardless of verbosity on macOS 12.7.1 / 1…
Browse files Browse the repository at this point in the history
…3.6.3 / 14.2
  • Loading branch information
kit-ty-kate committed Dec 18, 2023
1 parent 9821947 commit 35a70eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/glpk_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ int glpk_solver::solve(int timeout) {
try {
if (verbosity == 0) {
save_stdout = dup(1);
close(1);
fclose(stdout); /* close(1) does not close stdout on macOS since macOS 12.7.1 / 13.6.3 / 14.2 (the bug has been reported) */
}
glp_init_iocp(&this->mip_params);
this->mip_params.gmi_cuts = GLP_ON;
Expand Down
2 changes: 1 addition & 1 deletion src/osi_solver.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ int osi_solver<OsiSolver>::solve(int timeout) {
try {
if (verbosity == 0) {
save_stdout = dup(1);
close(1);
fclose(stdout); /* close(1) does not close stdout on macOS since macOS 12.7.1 / 13.6.3 / 14.2 (the bug has been reported) */
}

double * obj_v = objectives[0].denseVector(nb_vars);
Expand Down

0 comments on commit 35a70eb

Please sign in to comment.