diff --git a/src/Osi/OsiSolverInterface.cpp b/src/Osi/OsiSolverInterface.cpp index 1c97885a..40e4ad70 100644 --- a/src/Osi/OsiSolverInterface.cpp +++ b/src/Osi/OsiSolverInterface.cpp @@ -1450,7 +1450,7 @@ int OsiSolverInterface::writeLpNative(const char *filename, if (!fp) { printf("### ERROR: in OsiSolverInterface::writeLpNative(): unable to open file %s\n", filename); - exit(1); + return (1); } int nerr = writeLpNative(fp, rowNames, columnNames, epsilon, numberAcross, decimals,