emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Hangs on Filesystem Operations on Stale NFS


From: Alexander Shukaev
Subject: Re: Emacs Hangs on Filesystem Operations on Stale NFS
Date: Mon, 11 Jun 2018 14:46:35 +0200
User-agent: Roundcube Webmail/1.1.2

On 2018-06-11 14:40, Andreas Schwab wrote:
On Jun 11 2018, Alexander Shukaev <address@hidden> wrote:

signal.signal(signal.SIGALRM, alarm_handler)
signal.alarm(3)
try:
  proc = subprocess.call('stat ' + path,
               shell=True,
               stderr=subprocess.PIPE,
               stdout=subprocess.PIPE)
  stdoutdata, stderrdata = proc.communicate()
  signal.alarm(0)
except Alarm:
  print "Timed out after 3 seconds..."

How do you know that 3 seconds is enough?

Andreas.

You don't know. You just decide that it's maximum tolerable for you/your setup/hardware/connection/preferences/whatever, otherwise you are 99.(9)% sure that something is wrong somewhere with your system, but you don't give up your Emacs instance for that and rather get indicated that there might be a potential problem.

P.S. How did people know that 2 hours would be enough for TCP keepalive?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]