
* mln/io/abort.hh (mln::io::abort): Delegate to std::abort instead of std::exit. --- milena/ChangeLog | 7 +++++++ milena/mln/io/abort.hh | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/milena/ChangeLog b/milena/ChangeLog index 6fe7f9d..ee34372 100644 --- a/milena/ChangeLog +++ b/milena/ChangeLog @@ -1,5 +1,12 @@ 2009-06-10 Roland Levillain <roland@lrde.epita.fr> + Fix mln::io::abort(). + + * mln/io/abort.hh (mln::io::abort): Delegate to std::abort instead + of std::exit. + +2009-06-10 Roland Levillain <roland@lrde.epita.fr> + Regen Makefile helpers. * headers.mk, tests/unit_test/unit-tests.mk: Regen. diff --git a/milena/mln/io/abort.hh b/milena/mln/io/abort.hh index dd85e4f..9d06e7b 100644 --- a/milena/mln/io/abort.hh +++ b/milena/mln/io/abort.hh @@ -1,4 +1,5 @@ -// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE) +// Copyright (C) 2007, 2008, 2009 EPITA Research and Development +// Laboratory (LRDE) // // This file is part of Olena. // @@ -27,11 +28,11 @@ # define MLN_IO_ABORT_HH /// \file -/// + /// Define a function which aborts a process in io module. -# include <iostream> # include <cstdlib> +# include <iostream> namespace mln @@ -52,7 +53,7 @@ namespace mln void abort() { std::cerr << "I/O error, aborting." << std::endl; - std::exit(0); + std::abort(); } # endif // ! MLN_INCLUDE_ONLY -- 1.6.1.2