On Fri, Aug 18, 2006 at 01:26:25PM +0300, Valentin Nechayev wrote:
Прицепись ktrace и посмотри что за сигнал пролетает что read() был прерван. В нормальном варианте этого таки не должно происходить:)
Вот, что есть. Ловит он SIGALRM: [...] 08/18 13:53:56 ad6 wfr: waiting for ``RING''" 9565 mgetty RET write 46/0x2e 9565 mgetty CALL gettimeofday(0x7fffffffda20,0) 9565 mgetty RET gettimeofday 0 9565 mgetty CALL write(0x3,0x51f000,0x1b) 9565 mgetty GIO fd 3 wrote 27 bytes " 08/18 13:53:56 ad6 got: " 9565 mgetty RET write 27/0x1b 9565 mgetty CALL sigaction(0xe,0x7fffffffe310,0x7fffffffe2f0) 9565 mgetty RET sigaction 0 9565 mgetty CALL setitimer(0,0x7fffffffe310,0x7fffffffe2f0) 9565 mgetty RET setitimer 0 9565 mgetty CALL read(0,0x51c0a0,0x200) 9565 mgetty RET read -1 errno 4 Interrupted system call 9565 mgetty PSIG SIGALRM caught handler=0x4085db mask=0x0 code=0x0 9565 mgetty CALL sigreturn(0x7fffffffdee0) 9565 mgetty RET sigreturn JUSTRETURN 9565 mgetty CALL gettimeofday(0x7fffffffda10,0) 9565 mgetty RET gettimeofday 0 9565 mgetty CALL write(0x3,0x51f000,0x4d) 9565 mgetty GIO fd 3 wrote 77 bytes " 08/18 13:54:06 ad6 mdm_read_byte: read returned -1: Interrupted system call" 9565 mgetty RET write 77/0x4d 9565 mgetty CALL gettimeofday(0x7fffffffda20,0) 9565 mgetty RET gettimeofday 0 9565 mgetty CALL write(0x3,0x51f000,0x32) 9565 mgetty GIO fd 3 wrote 50 bytes " 08/18 13:54:06 ad6 wfr: timeout waiting for RING" 9565 mgetty RET write 50/0x32 9565 mgetty CALL setitimer(0,0x7fffffffe310,0x7fffffffe2f0) 9565 mgetty RET setitimer 0 9565 mgetty CALL gettimeofday(0x7fffffffda20,0) 9565 mgetty RET gettimeofday 0 9565 mgetty CALL write(0x3,0x51f000,0x27) 9565 mgetty GIO fd 3 wrote 39 bytes [...] Могу прикрепить полный дамп, да только наверное ни к чему. -- Kind Regards, Alexander Shikoff AMS1-UANIC =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message