Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: serial console
- X-seq: zsh-users 13914
- From: Maciej Kazulak <kazulakm@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: serial console
- Date: Sat, 14 Mar 2009 20:53:18 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JaRR68wFCiIBuzUi/NvbXSxbhTA/JPu+Rm3hUE5ll8o=; b=CeC4vtfaR61P8M7Ns7SjX7FJdeudlYg+wsHjaiSZ3fG4y1T42afGfWyuOe2lx2OXFC jVqirMB6AtrGk8GkzdCS+qVfBFz9Tcjln/WassXHXG5DnMkVKj+mUJ6dn3ZGMj3h1y/m M4xat/QNazUG2relL/SuEUOiG4uYnmG61iRdc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=DavTmHUbVXrDHfdSxQ45N+ctx9IqgpMZn3Leyb0pKWf7KbgSsDs7Xq8n4OvwbZ7IlD ld01LpSeYDmF4apaE8uGYx9fCDHBAo0Djd9tnUlaXLqQIVyUBeDQu3j9bZdw3G2zRT/N eF4w92lMkLlCYfUe1W42xfLpvzD0o3UT9ePsI=
- In-reply-to: <200903142244.44621.arvidjaar@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <492f5c190903141131i547a5e60ha7e6bda52198853f@xxxxxxxxxxxxxx> <200903142155.46660.arvidjaar@xxxxxxxxx> <492f5c190903141215h4038d746v65e3c64544f220af@xxxxxxxxxxxxxx> <200903142244.44621.arvidjaar@xxxxxxxxx>
2009/3/14 Andrey Borzenkov <arvidjaar@xxxxxxxxx>:
> On 14 ÐÐÑÑÐ 2009 22:15:12 Maciej Kazulak wrote:
>> 2009/3/14 Andrey Borzenkov <arvidjaar@xxxxxxxxx>:
>> > Interesting, Mandriva RPM has patch that opens tty with O_NONBLOCK;
>> > presumably exactly to work around this issue. I am still not
>> > convinced that it is the right way; I would really like to
>> > understand what happens with tty driver. Could you dump full
>> > contents of struct termios *?
>
>> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {c_iflags=0x1500,
>> c_oflags=0x5, c_cflags=0x4bf, c_lflags=0x83b, c_line=0,
>> c_cc="\x03\x1c\x7f\x15\x04\x00\x01\x00\x11\x13\x1a\x00\x12\x0f\x17\x1
>>6\x00\x00\x00"}) = 0
>
> Yes, CLOCAL is cleared. What happens if you add -L to agetty parameters?
>
Oh, that does it:
fcntl(1023, F_GETFL) = -1 EBADF (Bad file descriptor)
getuid() = 0
geteuid() = 0
getgid() = 0
getegid() = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {c_iflags=0x1500,
c_oflags=0x5, c_cflags=0xcbf, c_lflags=0x83b, c_line=0,
c_cc="\x03\x1c\x7f\x15\x04\x00\x01\x00\x11\x13\x1a\x00\x12\x0f\x17\x16\x00\x00\x00"})
= 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {c_iflags=0x1500,
c_oflags=0x5, c_cflags=0xcbf, c_lflags=0x83b, c_line=0,
c_cc="\x03\x1c\x7f\x15\x04\x00\x01\x00\x11\x13\x1a\x00\x12\x0f\x17\x16\x00\x00\x00"})
= 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {c_iflags=0x1500,
c_oflags=0x5, c_cflags=0xcbf, c_lflags=0x83b, c_line=0,
c_cc="\x03\x1c\x7f\x15\x04\x00\x01\x00\x11\x13\x1a\x00\x12\x0f\x17\x16\x00\x00\x00"})
= 0
readlink("/proc/self/fd/0", "/dev/ttyS1"..., 4095) = 10
open("/dev/ttyS1", O_RDWR|O_NOCTTY) = 3
fcntl(3, F_DUPFD, 10) = 10
close(3) = 0
And it finally works. Thanks.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author