Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: error on TTY read: no such file or directory



In the gothic chambers of the underworld on Sat 29 Sep 2001 at 02:41 -0400,
Borsenkow Andrej muttered darkly:

> 
> Please, login (as root) on another tty and do strace on mingetty on, 
> say, tty1 and then login on tty1. Do strace -f to follow all forks. This 
> may give some hint (it did for me once I had similar problem).
> 
> -andrej

yes, it does indeed:

ioctl(10, 0x541b, [0])                  = 0
ioctl(10, 0x5410, [1321])               = 0
ioctl(10, SNDCTL_TMR_STOP, {B9600 opost isig -icanon -echo ...}) = 0
write(10, "\r\33[m\33[m\33[m\33[J\n\33[1;30m[ \33[1;37mlc"..., 270) = 270
write(10, "\33[K", 3)                   = 3
read(10, "@(\377\4\10\0\0\0\0\361\212\0@8Q\1@B\5\0\0@W\1@\2\217\0"..., 1) = 1025
ioctl(2, SNDCTL_TMR_TIMEBASE, 0xbffff8d8) = -1 ENOTTY (Inappropriate ioctl for device)
write(2, "zsh: error on TTY read: bad file"..., 44) = 44
stat64("/root/.zsh/.zlogout.zwc", 0xbffff73c) = -1 ENOENT (No such file or directory)
stat64("/root/.zsh/.zlogout", {st_mode=S_IFREG|0644, st_size=8, ...}) = 0

etc

inappropriate ioctl for device? what does this mean? a search on google
doesn't seem to turn up much.

t.

-- 
4.0k -rw-rw-r--    1 zork     zork       17 Apr 4 17:38 .signature



Messages sorted by: Reverse Date, Date, Thread, Author