* Fix to init.c from Stuart Menefy <Stuart.Menefy@st.com> so that
    it always sets the controlling terminal before running any programs
 -Erik
diff --git a/init/init.c b/init/init.c
index 2c27513..26e4dc7 100644
--- a/init/init.c
+++ b/init/init.c
@@ -411,6 +411,7 @@
 		dup2(fd, 0);
 		dup2(fd, 1);
 		dup2(fd, 2);
+		ioctl(0, TIOCSCTTY, 0);
 		tcsetpgrp(0, getpgrp());
 		set_term(0);