Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8886740 authored by Colin Cross's avatar Colin Cross Committed by Android (Google) Code Review
Browse files

Merge "init: manually set controlling tty for console services"

parents 418fbe66 50fb5a69
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -134,6 +134,7 @@ static void open_console()
    if ((fd = open(console_name, O_RDWR)) < 0) {
        fd = open("/dev/null", O_RDWR);
    }
    ioctl(fd, TIOCSCTTY, 0);
    dup2(fd, 0);
    dup2(fd, 1);
    dup2(fd, 2);