Messages in this thread | | | Date | Thu, 3 Jan 2008 16:04:47 +0100 (CET) | From | Jan Engelhardt <> | Subject | Re: serial console _after_ boot ? - was: Redirect kernel console |
| |
On Jan 3 2008 15:39, devzero@web.de 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)); >}
| |