("Unable to fork. Exiting.\n"); @@ -251,6 +261,13 @@ int main(int argc, char *argv[]) { ); exit(1); } + if (ioctl(0, TIOCSCTTY, NULL) == -1) { + DEBUG( + "Unable to attach to controlling tty (errno=%d %s).\n", + errno, + strerror(errno) + ); + } DEBUG...
access_ok(VERIFY_WRITE, compat_ptr(tmp.entries), tmp.entry_ct*sizeof(struct unipair))) return -EFAULT; vc = ((struct tty_struct *)file->private_data)->driver_data; switch (cmd) { case PIO_UNIMAP: if (!perm) return -EPERM; return con_set_unimap(vc, tmp.entry_ct, compat_ptr(...