From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Emacs Hangs on Filesystem Operations on Stale NFS Date: Mon, 11 Jun 2018 07:59:58 -0400 Message-ID: References: <1727545582523435cab149c2bc857b40@alexander.shukaev.name> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1528718323 21091 195.159.176.226 (11 Jun 2018 11:58:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2018 11:58:43 +0000 (UTC) Cc: Emacs developers To: Alexander Shukaev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 11 13:58:39 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSLT3-0005JE-MI for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 13:58:37 +0200 Original-Received: from localhost ([::1]:47904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSLV8-0002HE-R9 for ged-emacs-devel@m.gmane.org; Mon, 11 Jun 2018 08:00:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSLUP-0002G8-MH for emacs-devel@gnu.org; Mon, 11 Jun 2018 08:00:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSLUO-0000ma-Ve for emacs-devel@gnu.org; Mon, 11 Jun 2018 08:00:01 -0400 Original-Received: from mail-ot0-x233.google.com ([2607:f8b0:4003:c0f::233]:34920) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSLUO-0000kn-OC for emacs-devel@gnu.org; Mon, 11 Jun 2018 08:00:00 -0400 Original-Received: by mail-ot0-x233.google.com with SMTP id q17-v6so23432724otg.2 for ; Mon, 11 Jun 2018 05:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8pE2Fvbi/dVw+qIdvMFJJ2BxnRvrxPx2bFwiHaT5OK8=; b=pDBGusCTxc9hNpBz6XwV0BUGpvSb40UaQvI4dOY5zFQrCKDrzvDD5ha+X26OmXmYH5 Obp5c6huPaP4jnCZm2E45Sja/c2j1vfERbs22Zlv9YGCRXBCn8BO+oWZaKpkqVE32dqO 8dcH8Z3GgTfhRk9ZakkvfQyDCKq+LG9qcDO/6gc/TP3/9Cp5XQBeiNIprnlADM0J0L1K xZR86E9+SFi3+bvRDIFwF9ZbYceGL7QHLgR/1DxSDNfihPE04rH4TDJhD91AufeFurSm 5hReMX23QWB+9uHyI9bu+lrBE0G/jCB4CpiMGLxWF19jJIgmG4J6Mo5TvnWpV3AxLLpa XD+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8pE2Fvbi/dVw+qIdvMFJJ2BxnRvrxPx2bFwiHaT5OK8=; b=Tyhmp56aXddh2d7ehnT1VSe+NzQfSWoiOYCdFLQIkuk9GStJYrFJ3ih8vQ33KoQzuF X9iW8SEFiOTEBSBdjij0yJxmgQyIVX2yke3pmkT0zgdKtQmMVRiCYqz+fnc8uKGXtKDU qPx0K41zVXw29ntGj86e8a2QVFiQdHta0ZzegrDJRlqYw1kvtBpvmb3WM1dMqSR/UOqA JNQLIClPBmtKT3me7b1NqFKGKSu8NxIrkTYzXhagVg20KIQqLieGDdwbX6xf2j9iF0fu 7oqJE6QNZ1ky6h01Aaa52BA5sGiFen/HCpYDZwnB6DkrE3X/rQYgn4SP7+Zu+wsO3pSL zZwg== X-Gm-Message-State: APt69E1Kl96Olgl1s9ASSe7Lt+BdWQ3Jt2Vd44iF2HFsukES350upF+J ROkeGqKmztZEQT+CzLr5FpJg0DjZ1iTMX4iWFOiJaw== X-Google-Smtp-Source: ADUXVKLq1gh/Ofuk5mRAC3awI/s6fS2XTAh7tgeRHztulHddloDy/BbAWXjWU+bWRj2l3js167QuWEv9dNNuHHkXQ5A= X-Received: by 2002:a9d:2ce6:: with SMTP id e35-v6mr10321024otd.82.1528718399882; Mon, 11 Jun 2018 04:59:59 -0700 (PDT) Original-Received: by 2002:a4a:3b84:0:0:0:0:0 with HTTP; Mon, 11 Jun 2018 04:59:58 -0700 (PDT) In-Reply-To: <1727545582523435cab149c2bc857b40@alexander.shukaev.name> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c0f::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226194 Archived-At: On 11 June 2018 at 06:27, Alexander Shukaev wrote: > Well, enough rant. I think I have a proposal how to fix the issue, even > given the blocking nature of Emacs. How about introducing a variable > `file-access-timeout' defaulting to `nil', which would reflect a > configurable timeout for all access operations (such as `file-readable-p')? > This would be achieved via `SIGALARM' in the C code, which would protect > every such operation. For example, Does it work? According to some messages on the previous thread you referenced [1], NFS hangs happen in the kernel so a signal would not help. [1]: https://lists.gnu.org/archive/html/help-gnu-emacs/2015-11/msg00266.html