Re: serial console _after_ boot ? - was: Redirect kernel console

From: Jan Engelhardt
Date: Thu Jan 03 2008 - 10:04:59 EST



On Jan 3 2008 15:39, devzero@xxxxxx wrote:
>fantastic, thanks!
>
>unfortunately......
>
>opensuse103:/home/roland/serialcons # ./mytioccons
>ioctl: Device or resource busy
>
>but i`m not deep enough into programming to understand this.
>

>int main(void)
>{
>int fd = open("/dev/ttyS0", O_RDWR);
>int errno;

This errno is so out of place.

>
>ioctl(0, TIOCCONS, NULL);
>
>if (ioctl(fd, TIOCCONS, NULL) < 0)
> printf("ioctl: %s\n", strerror(errno));
>}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/