Darren Nickerson <[EMAIL PROTECTED]> writes:
...
| It's the 'stty 0' which fails now. Previously:
|
|       [root@fax /root]# cat /etc/issue
|
|       Red Hat Linux release 4.2 (Biltmore)
|       Kernel 2.0.30 on an i586
|
|       [root@fax /root]# stty --version
|       stty (GNU sh-utils) 1.16
|       [root@fax /root]# stty 0
|       [root@fax /root]#
|
| whereas now we see:
|
|       [root@ducent uucp]# cat /etc/issue
|
|       Red Hat Linux release 6.1 (Cartman)
|       Kernel 2.2.14pre11 on a 2-processor i686
|
|       [root@ducent uucp]# stty --version
|       stty (GNU sh-utils) 2.0
|       Written by David MacKenzie.
|
|       [root@ducent uucp]# stty 0
|       stty: standard input: unable to perform all requested operations
|       [root@ducent uucp]#

>From what I recall, the `failure' you're seeing is new only in
the sense that stty detects it -- before it didn't detect that it
had not performed all requested changes, now it does.
I believe it still performs the same syscalls.  If in doubt,
run strace on both systems.

| The original author was apparently wanting a system-independent way of
| resetting the modem . . . hanging up the line with stty seemed to do the trick. 
|Until now :-(
|
| The man page for the working version says of the numeric argument to stty:
|
|        Special settings:
|
|        N      Set the input and output speeds to N.  N can be one
|               of: 0 50 75 110 134 134.5 150 200 300 600 1200 1800
|               2400 4800 9600 19200 38400 exta extb.  exta is  the
|               same  as 19200; extb is the same as 38400.  0 hangs   <--------
|               up the line if -clocal is set.                        <--------
|
| IRIX 6.4 says:
|
|    Control Modes
|      0         hang up phone line immediately.
|
| Whereas the current
|
|    Special settings:
|        N      set the input and output speeds to N bauds
|
| and no mention of the reset special case if N=0.

The original text of the man page is now in the texinfo documentation
(see `info stty').

Reply via email to