Do not use system in rarun2

This commit is contained in:
pancake 2017-03-14 12:04:50 +01:00
parent 6805a12210
commit b4395185f1

View File

@ -10,7 +10,7 @@ static void fwd(int sig) {
static void rarun2_tty() { static void rarun2_tty() {
/* TODO: Implement in native code */ /* TODO: Implement in native code */
system ("tty"); r_sys_cmd ("tty");
close(1); close(1);
dup2(2, 1); dup2(2, 1);
signal (SIGINT, fwd); signal (SIGINT, fwd);