SUMMARY: DU 4.0B Problem - chars not delivered to /dev/tty - script bug

From: Keith Lewis <keithl_at_mukluk.cc.monash.edu.au>
Date: Mon, 23 Jun 1997 11:15:26 +1000

-----BEGIN PGP SIGNED MESSAGE-----

Hi Folks,

        On Thursday I foolishly wrote:

- ----------------------------------------------------------------------

        There seems to be a problem with keystrokes not being delivered to a
process with a read pending on /dev/tty, under DU 4.0b.

        There are two circumstances in which we have seen this.

1) The operators start an xterm on their workstation, and rsh to a machine
with a tape drive, then by means of sudo proceed to run a script called
backup with root privs.

...

- ----------------------------------------------------------------------

        Thanks to Tom Blinn, and everyone else who replied.

        The problem was a bug in the script. Two processes, the `dd'
process and the `rsh' process both had reads outstanding on the keyboard,
and all the missing carriage returns had been delivered to the `rsh'
process.

        The script is now modified to say

...
rsh <remotehost> dump 0f - <fs> < /dev/null | dd of=<tape>
...

        And it seems to be working.

        I feel very foolish...

Keith

        
        

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i

iQCVAwUBM63OL3EpE0nRVDfpAQED/gP/WwGXZ6sM4wuXZ/NJq9x4rzMHQvpIrYxn
RN789UDr3gLlxgsSdrmcIxGNZ6j8NiamptzkyK1/+kPbWeINBX84Ds1+Tkp3VI1H
XowGHScGPtbNKmMG7YNOEGTzirhhEH7i4xKdPOWK6y1/sfVcGxoH31HTkWzNcraF
7YC2UrTaUJQ=
=Jg0s
-----END PGP SIGNATURE-----
Received on Mon Jun 23 1997 - 07:32:42 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT