Skip to content
Prev 15977 / 63433 Next

Ctrl-c crashes R when run as sudo (PR#7819)

MSchwartz@medanalytics.com writes:
...
The effect seem to have been neatly backported to 2.0.1 though...

Gdb doesn't seem to help. If you run a ps while "sudo R" is running,
you'll see something like this:

root     30416  0.0  0.1  2356  252 pts/5    S+   19:48   0:00 sesh /usr/bin/R
root     30417 10.0  7.2 18016 13860 pts/5   S+   19:48   0:01 /usr/lib/R/bin/exec/R

What I suspect is happening is that the ^C kills the sesh process, but
that in turn does not manage to kill R.