* bug#10931: 23.4; inconsistency between open-tls-stream and open-gnutls-stream
@ 2012-03-03 9:24 Leo
2012-03-03 13:58 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2012-03-03 9:24 UTC (permalink / raw)
To: 10931; +Cc: Lars Magne Ingebrigtsen
I started using encrypted connection in rcirc and noticed the following
difference between Emacs built with gnutls and one without gnutls. The
one without gnutls kills my irc process implicitly when I exit emacs.
This is due to the following form in open-tls-stream:
(funcall (if (fboundp 'set-process-query-on-exit-flag)
'set-process-query-on-exit-flag
'process-kill-without-query)
process nil)
This inconsistency is annoying and has caused me to lose conversations
in IRC. I wonder if the behaviour in these two functions can be unified.
Thanks,
Leo
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#10931: 23.4; inconsistency between open-tls-stream and open-gnutls-stream
2012-03-03 9:24 bug#10931: 23.4; inconsistency between open-tls-stream and open-gnutls-stream Leo
@ 2012-03-03 13:58 ` Lars Magne Ingebrigtsen
2012-03-03 14:05 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-03-03 13:58 UTC (permalink / raw)
To: Leo; +Cc: 10931
Leo <sdl.web@gmail.com> writes:
> This is due to the following form in open-tls-stream:
>
> (funcall (if (fboundp 'set-process-query-on-exit-flag)
> 'set-process-query-on-exit-flag
> 'process-kill-without-query)
> process nil)
Yes, setting this here in this low-level part of `open-tls-stream' is
just not a good idea.
The changelog just says
+2009-02-07 Dave Love <fx@gnu.org>
+
+ * tls.el (open-tls-stream): Don't query killing process.
+
which isn't very helpful, but looking at the code, I think I can
understand why it's doing this. `open-tls-stream' needs (in some error
cases) to kill off the process/buffer it's created, and create a new
one. In these error cases, having the user prompted is a bug. I
think. Possibly. Although I can't quite see why, really.
But that's what should be fixed, and the
`set-process-query-on-exit-flag' shouldn't be done. I'll see whether I
can dig up the original bug report to see what the real problem was...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#10931: 23.4; inconsistency between open-tls-stream and open-gnutls-stream
2012-03-03 13:58 ` Lars Magne Ingebrigtsen
@ 2012-03-03 14:05 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-03-03 14:05 UTC (permalink / raw)
To: Leo; +Cc: 10931
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> But that's what should be fixed, and the
> `set-process-query-on-exit-flag' shouldn't be done. I'll see whether I
> can dig up the original bug report to see what the real problem was...
The original report didn't really say anything about what problem it was
supposed to fix, except "consistency", so I've now reverted it.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-03 14:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-03 9:24 bug#10931: 23.4; inconsistency between open-tls-stream and open-gnutls-stream Leo
2012-03-03 13:58 ` Lars Magne Ingebrigtsen
2012-03-03 14:05 ` Lars Magne Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.