[Rcpp-devel] Interrupts in compiled code.
Davor Cubranic
cubranic at stat.ubc.ca
Thu Jan 27 01:10:56 CET 2011
On 2011-01-24, at 6:53 PM, Dirk Eddelbuettel wrote:
> On 24 January 2011 at 15:36, Davor Cubranic wrote:
> | Actually, the interrupt seems to be caught only the first time I enter "foo". When I call it the second time from the prompt, no handler is activated -- I'm not sure why.
>
> Code such as the one shown below was only ever meant to catch one interrupt
> signal such as Ctrl-C for abort. Upon catching the signal I usually wind the
> program down. So I never tried what you are attempting here: to actually be
> "reentrant" and catch the same signal multiple times. Let us know how it
> goes and what you find :)
Do you mean that this pattern only applies to stand-alone programs?
Davor
More information about the Rcpp-devel
mailing list