Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: serial console
- X-seq: zsh-users 13912
- From: Maciej Kazulak <kazulakm@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: serial console
- Date: Sat, 14 Mar 2009 20:15:12 +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=YlXd0fN1LJl9rzSigoDT135sGXG1BpFVAMWudKGWN2Q=; b=B0kcpTQNshc2c4hs49tb0W2La4o46J0LoT8ja6VzX7lnFvUI4wqC3b0tSnCmCMOnGJ TkVFv/mcpZso/qVnNGMI9BT2bzYQeR5SYB5Z8AKUR0smqWKDPqafFOna5sIXqbOCLjOh UzM69sbhCr+ddRVyJbgWharc83LW5Ec9IMgLo=
- 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=od3SRDI2N0qrS806r0szI518epP8n/kDG1vXu3ZunKzV8Xc1FIdgaNnP9UySZ4Duwg PlLIHxIwIkElwvwuiRVh3ZdwBvj5reptFRLa+lWzsRuousKE/ctTFvA2b2PrrWli4g62 dxMhKMAor8YMPrQlcqtcWUgDxGEOGUolFF5h0=
- In-reply-to: <200903142155.46660.arvidjaar@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <492f5c190903141131i547a5e60ha7e6bda52198853f@xxxxxxxxxxxxxx> <200903142155.46660.arvidjaar@xxxxxxxxx>
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 *? I
> believe in Linux it should be something like
>
> strace -e verbose=ioctl ...
>
Here you go.
strace -v zsh:
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=0x4bf, 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=0x4bf, 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=0x4bf, 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author