octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interrupt handing and the GUI (bug #37672)


From: Michael D. Godfrey
Subject: Re: interrupt handing and the GUI (bug #37672)
Date: Sun, 10 Nov 2013 16:10:55 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

On 11/10/2013 12:07 PM, John W. Eaton wrote:
Another question is whether we should always use this approach or
continue to use the setjmp/longjmp method for the CLI version of
Octave.

Does anyone see a better way?

jwe
John,

I do not have a better way, but maybe a suggestion.
First, my experience with Fedora 19 is:
octave:3> system('sleep 30')
^Cans =  2
octave:4>

Hangs until time count down:
octave:1> sleep(20)
^C^CPress Control-C again to abort.

and
octave:1> system(sleep(30))
^C^CPress Control-C again to abort.

============================
For sleep() would it be useful to implement code that does the sleep
to do the actual sleep which is not interruptable  in
short increments, checking  for interrupt at end of each increment?

Likely, you have a general solution that will work, which would
obviously be better.

Michael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]