-----Original Message-----
From: r-devel-bounces at r-project.org [mailto:r-devel-bounces at r-project.org] On Behalf
Of Rong lI Li
Sent: Tuesday, July 02, 2013 8:46 AM
To: r-devel at r-project.org
Subject: [Rd] Ctrl+C in R will terminate the child process which is spawned by using "pipe"
Hi, all,
I pressed Ctrl+C in R process, and found that the child process which was
spawned by using "pipe" is terminated due to this.
Are there any way to work around it, so that the child process can run
happily without being terminated? Or can we block the signal for the child
process?
1. I used pipe to spawn one C++ process, which will running in a loop
without exiting immediately.
z <- pipe("./mytest", open = "r+")
description class mode text opened can read
"./mytest" "pipe" "r+" "text" "opened" "yes"
can write
"no"
2. When I press "Ctrl+C" in the current R shell, I found the forked child
process was also terminated. Are there any way to work around it?
=====================
Rong "Jessica", Li (????)
Platform Symphony TET, CSTL, IBM Systems &Technology Group, Development
Tel:86-10-82451010 Email:ronglli at cn.ibm.com
[[alternative HTML version deleted]]