From tlumley@u.washington.edu  Tue Aug 21 19:23:26 2001
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Tue, 21 Aug 2001 11:23:26 -0700 (PDT)
Subject: [Rd] interrupting Sys.sleep (PR#1063)
In-Reply-To: <200108202055.WAA16443@pubhealth.ku.dk>
Message-ID: <Pine.A41.4.33.0108211114160.88898-100000@homer06.u.washington.edu>

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


[Rd] interrupting Sys.sleep (PR#1063)
Thomas Lumley