about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-23 20:00:01 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-25 20:29:18 +0000
commit4688de16772beffc315bbf765475a2932cbd8628 (patch)
tree54273f203e60b86b672a3f7d7b687a7acfb3725b /configure.ac
parent2fa11b7c54d766d6987fb5c0008f8209e6a2529f (diff)
downloadzsh-4688de16772beffc315bbf765475a2932cbd8628.tar.gz
zsh-4688de16772beffc315bbf765475a2932cbd8628.tar.xz
zsh-4688de16772beffc315bbf765475a2932cbd8628.zip
34365: History lockfile backoff: randomised time.
Time doubles on each lock failure.

zsleep() provides microsecond resolution for sleep; uses nanosleep() if
available, else select via means of existing tty poll function.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8ea9737c5..bfc02b2d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1299,7 +1299,8 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
 	       gdbm_open getxattr \
 	       realpath canonicalize_file_name \
 	       symlink getcwd \
-	       cygwin_conv_path)
+	       cygwin_conv_path \
+	       nanosleep)
 AC_FUNC_STRCOLL
 
 AH_TEMPLATE([REALPATH_ACCEPTS_NULL],