[4946] in Athena Bugs
disserve vs /dev/tty
daemon@ATHENA.MIT.EDU (John Carr)
Fri May 18 04:16:36 1990
To: bugs@ATHENA.MIT.EDU, bug-discuss@ATHENA.MIT.EDU
Date: Fri, 18 May 90 04:14:17 EDT
From: John Carr <jfc@ATHENA.MIT.EDU>
The discuss server funtion init_rpc() opens "/dev/tty". This has the side
effect of making dsmail run forever if the controlling tty is a pty with the
controlling side closed (or, I assume, any other tty device with no carrier
present). I can reliably make this happen by using emacs to send mail to a
local discuss meeting. The message will not be entered into the meeting
until the next time a process opens the controlling side of the tty that
emacs used to talk to the subprocess (this allows the open of /dev/tty to
complete).
I just fixed this for my workstation by installing as /usr/etc/disserve a
version with the lines commented out from server/rpproc.c:init_rpc(). It
might be possible to change this to set flags on the open() call to make it
non-blocking.