🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #100121

open-network-stream

#100121
From: David C Lawrence
Date: Sat, 20 May 1989 02:28
29 lines
2120 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: <31108@sri-unix.SRI.COM>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcvax!uunet!lll-winken!arisia!quintus!sri-unix!root

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,8ac6df659d8e2ba9
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1989-05-20 15:26:18 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcvax!uunet!lll-winken!arisia!quintus!sri-unix!root
From: tale@pawl.rpi.edu (David C Lawrence)
Newsgroups: gnu.emacs.bug
Subject: open-network-stream
Message-ID: <31108@sri-unix.SRI.COM>
Date: 20 May 89 02:28:52 GMT
Sender: root@unix.SRI.COM
Lines: 29
Posted: Sat May 20 03:28:52 1989