Re: [R] signal handling

From: Paul Roebuck <roebuck_at_odin.mdacc.tmc.edu>
Date: Fri 12 Aug 2005 - 08:04:15 EST

On Thu, 11 Aug 2005, Omar Lakkis wrote:

> Is ther[sic] a signal handling model in R? similar to
> Perl's %SIG hash. I want to do fast clean up in my R
> code before exit when a kill signal is issued.

You may find on.exit() somewhat useful for cleanup but signals are not propogated to your code by the R environment.

?Signals (on Unix-based platforms) mentions that SIGUSR2 will bypass the above; no idea about Windows.



SIGSIG -- signature too long (core dumped)

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 12 08:09:34 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:15:32 EST