Displaying 2 results from an estimated 2 matches for "aa6c25f".
2017 Apr 03
2
[PATCH supermin] init: Don't perform ioctl (TIOCSCTTY).
Don't know why it works, but it works ...
Rich.
2017 Apr 03
0
[PATCH supermin] init: Don't perform ioctl (TIOCSCTTY).
...xes this.
I noticed the problem because supermin's init compiled with dietlibc
worked, since the dietlibc header files don't define TIOCSCTTY and
hence the ioctl was not called.
---
init/init.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/init/init.c b/init/init.c
index e6fd0e6..aa6c25f 100644
--- a/init/init.c
+++ b/init/init.c
@@ -240,10 +240,6 @@ main ()
/* Make current process the controlling process of the tty. */
setsid ();
-#ifdef TIOCSCTTY
- if (ioctl (0, TIOCSCTTY, 1) == -1)
- perror ("ioctl: TIOCSCTTY");
-#endif
if (!quiet)
fprintf (stderr...