changeset 10070:897e62651c0a

correctly handle interrupts in pause()
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 07 Jan 2010 08:31:41 +0100
parents c670c8be7f93
children e42b1bbd1052
files src/ChangeLog src/utils.cc
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jan 07 08:29:02 2010 +0100
+++ b/src/ChangeLog	Thu Jan 07 08:31:41 2010 +0100
@@ -1,3 +1,7 @@
+2010-01-07  Jaroslav Hajek  <highegg@gmail.com>
+
+	* utils.cc (octave_sleep (double)): Add OCTAVE_QUIT.
+
 2010-01-06  Jaroslav Hajek  <highegg@gmail.com>
 
 	* unwind_protect.h, unwind_protect.cc (unwind_protect): Rewrite.
--- a/src/utils.cc	Thu Jan 07 08:29:02 2010 +0100
+++ b/src/utils.cc	Thu Jan 07 08:31:41 2010 +0100
@@ -1344,6 +1344,8 @@
       // defined in cutils.c.
       octave_sleep (sec);
       octave_usleep (usec);
+
+      OCTAVE_QUIT;
     }
 }