🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1698

open-network-stream

#1698
From: David C Lawrence
Date: Fri, 19 May 1989 02:48
29 lines
2002 bytes
Today while switching between one Emacs window and another (not inside
Emacs, but two seperate processes on my X display) there was a bit of
a delay in changing the input focus.  I didn't notice and the net
effect was that the wrong Emacs got exited by C-x C-c.

Normally this isn't a problem because of the wonderfulness of
auto-save.  Or if I had a shell running (for example) then Emacs would
have prompted me regarding whether it should kill the process and
exited.  

It was a problem, however, because I had a network stream open.  Emacs
sort of treats network-strems as only partially-pseudo-process-like;
half of the commands that apply to processes also work for
network-streams but other commands don't.  Emacs also doesn't prompt
about whether to close the stream or not when exiting.  The result of
that timing error on my part was that I left a stale connexion at the
remote service which had to be dealt with from that end.  If this were
just a once-in-a-year occurence it would be fine, but sometime I exit
Emacs and forget that I suspended GNUS, or that I am connected to this
Network Server.  (Just like when someone forgets that they have a
shell running.)  I haven't yet learned the C aspect of programming for
Emacs so I can't really offer coded as a fix, but could something be
added for v19 in the #ifdef subrocesses (kill-emacs, emacs.c) to check
the state of any network streams and prompt about whether to kill them?

Dave
--
 (setq mail '("tale@pawl.rpi.edu" "tale@itsgw.rpi.edu" "tale@rpitsmts.bitnet"))
 (error "UUCP not spoken here.  Long bang paths unlikely to get mail replies.")
Technical Details
Message-ID: <TALE.89May18224830@imagine.pawl.rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rpi!rpi.edu!tale

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rpi!rpi.edu!tale
From: tale@pawl.rpi.edu (David C Lawrence)
Newsgroups: gnu.emacs.bug
Subject: open-network-stream
Message-ID: <TALE.89May18224830@imagine.pawl.rpi.edu>
Date: 19 May 89 02:48:30 GMT
Sender: usenet@rpi.edu
Reply-To: tale@pawl.rpi.edu
Distribution: gnu
Lines: 29