aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-02 12:37:50 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-02 16:19:33 -0800
commit993148552efcffb60c7e1be7aa3322f1bffa1c74 (patch)
treeefdbd68e79c93f3b25b7d69c6a7f8a6d0ff7a903 /proc.cpp
parent1863be7be43d18e5e24c2684df86d764ddb089cc (diff)
Support for Ctrl-C cancellation in new parser. Added tests for it too.
Diffstat (limited to 'proc.cpp')
-rw-r--r--proc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc.cpp b/proc.cpp
index 4a25b451..4a1bfd5b 100644
--- a/proc.cpp
+++ b/proc.cpp
@@ -136,7 +136,8 @@ static bool proc_had_barrier = false;
int get_is_interactive(void)
{
ASSERT_IS_MAIN_THREAD();
- // The tests leave is_interactive as -1, which is interpreted as true. So let's have them default to false.
+ /* is_interactive is initialized to -1; ensure someone has popped/pushed it before then */
+ assert(is_interactive >= 0);
return is_interactive > 0;
}