diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-02 12:37:50 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-02 16:19:33 -0800 |
commit | 993148552efcffb60c7e1be7aa3322f1bffa1c74 (patch) | |
tree | efdbd68e79c93f3b25b7d69c6a7f8a6d0ff7a903 /proc.cpp | |
parent | 1863be7be43d18e5e24c2684df86d764ddb089cc (diff) |
Support for Ctrl-C cancellation in new parser. Added tests for it too.
Diffstat (limited to 'proc.cpp')
-rw-r--r-- | proc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |