Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: serial console
- X-seq: zsh-users 13911
- From: Andrey Borzenkov <arvidjaar@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: serial console
- Date: Sat, 14 Mar 2009 21:55:43 +0300
- Cc: Maciej Kazulak <kazulakm@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:cc:mime-version:content-type :content-transfer-encoding:message-id; bh=gDODAasWPyktnpK1OkLXb3xil9HzTY7I3HLbkneeo14=; b=OY12UDX8MccDxMDhRZN6tbcAzZ4TWoUoccazvmRjvR1FqybBPZnGYL/c1b8ghuBaZ4 QskYT5jq/AZuxadVzSV4qlgFqBnMlOVtdwmHgwXSF6e2YCSmWQSKjyhoLgGDxxJmcSeY K9+sx0tJXrTSEM2eZd3BfSyx0Ks6UEFLccSb4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:cc :mime-version:content-type:content-transfer-encoding:message-id; b=wvzkMbt9fxaLMMHcoT/8E8c1xjS74I3sQmNO8Nf+VMCbXPDlHCugtEQr2mc8JlASbw 2MZIYVBhHwvRERrKJ1rG+1BF/Nfe0aXpIxNfPC0sn/xxGLNdN6ojM2RZjp/OO7OJahK7 DQGrfWzj1GKAf5U16+nl4/LZiPxbFsfsLIqnY=
- In-reply-to: <492f5c190903141131i547a5e60ha7e6bda52198853f@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <492f5c190903141131i547a5e60ha7e6bda52198853f@xxxxxxxxxxxxxx>
On 14 ÐÐÑÑÐ 2009 21:31:59 Maciej Kazulak wrote:
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon
> echo ...}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost
> isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS,
> {B38400 opost isig icanon echo ...}) = 0 readlink("/proc/self/fd/0",
> "/dev/ttyS1"..., 4095) = 10
> open("/dev/ttyS1", O_RDWR|O_NOCTTY
>
> And it stops there.
Which implies, that
- terminal is in -clocal mode
- carrier detect signal is not present
There are two issues here
- OS seems to lie. In -clocal mode lack of carrier detect should result
in HUP signal and no communication should be possible.
- should zsh really reopen terminal? If we need additional fd, it could
just dup() it?
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 *? I
believe in Linux it should be something like
strace -e verbose=ioctl ...
Attachment:
signature.asc
Description: This is a digitally signed message part.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author