From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80404 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Reviving Gnus after suspend/hibernation Date: Mon, 24 Oct 2011 09:23:09 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <877h3ule0y.fsf@lifelogs.com> References: <87wrc2qmog.fsf@gnu.org> Reply-To: ding@gnus.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1319462722 632 80.91.229.12 (24 Oct 2011 13:25:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2011 13:25:22 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28692@lists.math.uh.edu Mon Oct 24 15:25:18 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RIKWi-0004Qd-J8 for ding-account@gmane.org; Mon, 24 Oct 2011 15:25:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RIKWh-0001cX-Bl; Mon, 24 Oct 2011 08:25:15 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RIKWg-0001cL-8N for ding@lists.math.uh.edu; Mon, 24 Oct 2011 08:25:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RIKWe-0006Vw-Fe for ding@lists.math.uh.edu; Mon, 24 Oct 2011 08:25:13 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RIKWd-0001Xj-41 for ding@gnus.org; Mon, 24 Oct 2011 15:25:11 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RIKWZ-0004MI-KF for ding@gnus.org; Mon, 24 Oct 2011 15:25:07 +0200 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Oct 2011 15:25:07 +0200 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 24 Oct 2011 15:25:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 41 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.90 (gnu/linux) Cancel-Lock: sha1:ISMpj/SqVOItpXPhlrHHek0tBLc= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80404 Archived-At: On Tue, 18 Oct 2011 18:39:11 +0200 ludo@gnu.org (Ludovic Courtès) wrote: LC> When Gnus is left plugged or has non-agentized nnimap groups, recovering LC> from suspend-to-RAM or hibernation has always been a problem for me: LC> sometimes Emacs is frozen upon resume, trying to get data from some IMAP LC> stream. LC> With Emacs 23, I would typically unfreeze it by running ‘killall LC> gnutls-cli’ (!). LC> With native GnuTLS support in Emacs 24, this is no longer possible, so LC> it goes like this: LC> $ gdb $(type -P emacs) $(pidof emacs) LC> [...] LC> 0x00007f2345838813 in __select_nocancel () from /nix/store/vxycd107wjbhcj720hzkw2px7s7kr724-glibc-2.12.2/lib/libc.so.6 LC> (gdb) return (int)-1 LC> Make selected stack frame return now? (y or n) y LC> #0 0x00000000004eed33 in xg_select () LC> (gdb) quit LC> A debugging session is active. LC> Inferior 1 [process 2204] will be detached. LC> Quit anyway? (y or n) y LC> Detaching from program: /nix/store/0p4r2m8pscisxj5crd65x34prdrrmkz4-user-environment/bin/emacs, process 2204 LC> It works, but I tend to think that the ergonomics could be improved. LC> :-) (Assuming modern GNU/Linux system is the main focus based on your commands) Is there a D-BUS signal for this, and can Emacs catch it? If so I could try to close the open connections in that handler. What happens on a W32 system? Thanks Ted