[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Kernel/Libc5 Problem (Bug#13682: setserial can't set closing_wait2)



> Package setserial
> Version 2.12-2

I have checked the source code, and I can confirm that setserial does the
correct thing here. Something must have happened with either libc or the
kernel to change the behaviour. My guess is that it is in libc ioctl...
Could someone more knowledgable check this out? Sorry if this seems like
passing the buck!
Gordon

> Using:
>   kernel 2.0.30
>   libc.so.5.4.33
> 
> Attempts to set the value of closing_wait2, using setserial, are
> unsuccessful and no error message is given.  When setserial is
> used to examine the value of closing_wait2 it appears that there
> has been no effect.
> 
> Setting the value of closing_wait, using setserial, IS success-
> ful.
> 
> Attached is an edited listing of results of appropriate tests and
> relevant information.
> 
> # ------------ edited capture of relevant commands -------------------
> #    This Debian system was upgraded from the Debian 1.3.1 CDROM
> #    from Linux System Labs
> 
> #    Note, however, that the Debian version file in /etc says 1.3
> 
> # cat /etc/debian_version
> 1.3
> 
> #    The operating system kernel was recompiled using kernel 2.0.30
> 
> # uname -a
> Linux dynamo 2.0.30 #1 Fri Sep 5 21:35:12 MDT 1997 i586 unknown
> 
> #    The version of setserial is 2.12
> #    (The Debian Package "setserial" version is 2.12-2)
> 
> # setserial -V
> setserial version 2.12
> 
> #    The version of MAKEDEV is version 1.5
> #    (However the Debian Package "makedev" version is 1.6-4)
> 
> # /dev/MAKEDEV -V
> MAKEDEV: MAKEDEV-C version 1.5
> 
> #    The tty used was produced using that version of MAKEDEV.
> 
> # ls -l /dev/ttyS1
> crw-rw----   1 root     dialout    4,  65 Oct  6 12:56 /dev/ttyS1
> 
> #    Use setserial to give parameters of the tty.
> 
> # setserial -a /dev/ttyS1
> /dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
> 	Baud_base: 115200, close_delay: 50, divisor: 0
> 	closing_wait: 3000, closing_wait2: infinte
> 	Flags: spd_vhi skip_test
> 
> #    Now attempt to change the setting of closing_wait2.
> 
> # setserial /dev/ttyS1 closing_wait2 3200
> 
> #    Now show parameters of the tty.
> 
> # setserial -a /dev/ttyS1
> /dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
> 	Baud_base: 115200, close_delay: 50, divisor: 0
> 	closing_wait: 3000, closing_wait2: infinte
> 	Flags: spd_vhi skip_test
> 
> #    Note that the parameters of the tty were NOT changed.
> #    (Although closing_wait2 SHOULD have been set to 3200.)
> 
> #    Now attempt to change the setting of closing_wait
> 
> # setserial /dev/ttyS1 closing_wait 3100
> # setserial -a /dev/ttyS1
> /dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f8, IRQ: 3
> 	Baud_base: 115200, close_delay: 50, divisor: 0
> 	closing_wait: 3100, closing_wait2: infinte
> 	Flags: spd_vhi skip_test
> 
> #    Note that the value of closing_wait DID change.
> #    (As it should have.)
> 
> # ------------ end of capture of relevant commands -------------------
> 
> 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: