From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacs hangs when changing network while sleeping Date: Sun, 23 Jan 2011 21:34:21 -0500 Message-ID: References: <8762th2len.fsf@sphax.lybrafox.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1295836476 26814 80.91.229.12 (24 Jan 2011 02:34:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 Jan 2011 02:34:36 +0000 (UTC) Cc: emacs-devel@gnu.org, =?iso-8859-1?Q?R=E9mi?= Letot To: joakim@verona.se Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 24 03:34:32 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PhCGF-0006lu-8I for ged-emacs-devel@m.gmane.org; Mon, 24 Jan 2011 03:34:31 +0100 Original-Received: from localhost ([127.0.0.1]:53063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhCGE-0007YB-R7 for ged-emacs-devel@m.gmane.org; Sun, 23 Jan 2011 21:34:30 -0500 Original-Received: from [140.186.70.92] (port=53168 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhCG9-0007Xw-SU for emacs-devel@gnu.org; Sun, 23 Jan 2011 21:34:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhCG8-0008Nt-P3 for emacs-devel@gnu.org; Sun, 23 Jan 2011 21:34:25 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:38706 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhCG8-0008Np-LT for emacs-devel@gnu.org; Sun, 23 Jan 2011 21:34:24 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG9zPE3O+J3X/2dsb2JhbACWSY4cdLsNhVAEhHCOOg X-IronPort-AV: E=Sophos;i="4.60,367,1291611600"; d="scan'208";a="89014062" Original-Received: from 206-248-157-215.dsl.teksavvy.com (HELO ceviche.home) ([206.248.157.215]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 23 Jan 2011 21:34:21 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0C95866102; Sun, 23 Jan 2011 21:34:21 -0500 (EST) In-Reply-To: (joakim@verona.se's message of "Sun, 23 Jan 2011 00:46:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:134879 Archived-At: > This happens for me too. I have the following workaround script. > Basically it finds the ip of an open nntp session that is hanging due to > local interface change, and makes a dummy lookalike interface on the > loopback interface. Emacs is then able to determine that the interface > is dead and can recover. > #/bin/sh > `lsof -n|grep emacs|grep nntp|sed "s/.*TCP\ \\([^:]*\\):.*->\\([^:].*\\):.*/ > export a=\\1 export b=\\2/"` > echo $a $b > ifconfig lo:1 $a > ifconfig lo:2 $b > echo press enter when emacs is alive > read > ifconfig lo:1 down > ifconfig lo:2 down Could someone take it up to the gnutls guys to try and figure out what's going on? Stefan