Skip to content
Prev 46154 / 63461 Next

Ctrl+C in R will terminate the child process which is spawned by using "pipe"

On Jul 2, 2013, at 11:46 AM, Rong lI Li wrote:

            
Yes, simply handle the INT signal in your C++ process and do what you deem appropriate (which does include the option of doing nothing / ignoring).

Other option is to do a double-fork ( fork -> if (fork()) exit) so you disassociate the child from the parent group or to possibly use setsid(), both as to not share the terminal with the parent.

Cheers,
Simon