If you use JNI or rJava, you should start the VM with -Xrs argument, otherwise the descibed things happen as Java catches the Ctrl-C interrupt
Dr Oleg Sklyar Research Technologist AHL / Man Investments Ltd +44 (0)20 7144 3107 oskl...@maninvestments.com > -----Original Message----- > From: r-devel-boun...@r-project.org > [mailto:r-devel-boun...@r-project.org] On Behalf Of Saptarshi Guha > Sent: 30 March 2009 04:24 > To: r-devel@r-project.org > Subject: [Rd] CTRL-C during .Call causes R to quit to command line > > Hello, > During a .Call e.g > while(TRUE){ > value <-rhsqnextKVR(rdr) ## has .Call in this function > if(is.null(value)) break; > } > if I press CTRL-C, R exits straight to the command line. > > Q: How can I prevent this? I should point out that my library uses > JNI, so I'm not sure if that is causing it. > I'm using R-2.8 on Linux (RHEL 5) > Thank you in advance > Regards > Saptarshi > > ______________________________________________ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > ********************************************************************** Please consider the environment before printing this email or its attachments. The contents of this email are for the named addressees ...{{dropped:19}} ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel