From 1aff6ec01deaee142209d007a7acebb859677603 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 16 Feb 2009 04:16:20 -0400 Subject: [PATCH] Abort journal parsing if Control-C is caught --- src/textual.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/textual.cc b/src/textual.cc index 51011aae..fe518cc2 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -236,6 +236,9 @@ void instance_t::parse() add_error_context("While parsing file " << file_context(pathname, linenum)); + if (caught_signal != NONE_CAUGHT) + throw; + string context = error_context(); if (! context.empty()) std::cerr << context << std::endl;