Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.33.0108211114160.88898-100000@homer06.u.washington.edu>
Date: 2001-08-21T18:23:26Z
From: Thomas Lumley
Subject: interrupting Sys.sleep (PR#1063)
In-Reply-To: <200108202055.WAA16443@pubhealth.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._