[Rd] interrupting Sys.sleep (PR#1063)
Thomas Lumley
tlumley@u.washington.edu
Tue, 21 Aug 2001 11:23:26 -0700 (PDT)
On Mon, 20 Aug 2001 tlumley@u.washington.edu wrote:
>
> On Linux R1.3.0 (and current pre1.3.1 and pre1.4.0)
> Sys.sleep(30)
> interrupt with CTRL-C
> Sys.sleep(30)
> causes a segmentation fault. It doesn't happen under Windows (2000).
>
The problem is that SleepHandler is not removed if the sleep is
interrupted. The segfault occurs if Sys.sleep() called again, or as soon
as the timer runs out.
It looks as though either do_syssleep needs to handle SIGINT itself or
jump_to_toplevel needs to know about event handlers.
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._