]> granicus.if.org Git - psmisc/commitdiff
build-sys: Update for timeout removal
authorCraig Small <csmall@dropbear.xyz>
Mon, 21 Nov 2022 09:53:46 +0000 (20:53 +1100)
committerCraig Small <csmall@dropbear.xyz>
Mon, 21 Nov 2022 09:53:46 +0000 (20:53 +1100)
README.md
configure.ac

index b904e3ad2440c2eeb20d567a25552971d38d12ee..e076b7c9f6d7a03eb84f3b94785b7aee6a55875a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -49,9 +49,3 @@ The license has changed to GPL for version 20 onwards with permission
 of the original authors.  People who want to use these programs under
 the previous license will have to look at psmisc 19 or below.
 
-## fuser on network fs
-On network file-systems, fuser can hang because its trying to stat files
-that may go away.  If you use the --with-timeout-stat option during
-the configure step then fuser will fork a process to run stat. This means
-fuser doesn't hang, but it is much slower.
-
index d37dacabdeda71551104a22ffe7d986e6080afae..723cf0226dadd5efc74b397a8fcb95d8cb004ffc 100644 (file)
@@ -62,20 +62,6 @@ if test "$enable_apparmor" = "yes"; then
 fi
 AC_SUBST([DL_LIB])
 
-# Call fork before all stat calls to stop hanging on NFS mounts
-AC_SUBST([WITH_TIMEOUT_STAT])
-AC_ARG_ENABLE([timeout_stat],
-  [AS_HELP_STRING([--enable-timeout-stat], [Use a timeout on stat calls (optional with argument "static" for a static background process)])],
-  [enable_timeout_stat=$enableval],
-  [enable_timeout_stat="no"])
-if test "$enable_timeout_stat" = "yes"; then
-  AC_DEFINE([WITH_TIMEOUT_STAT], [1], [Use timeout on stat calls])
-fi
-if test "$enable_timeout_stat" = "static"; then
-  AC_DEFINE([WITH_TIMEOUT_STAT], [2], [Use timeout on stat calls])
-fi
-AM_CONDITIONAL([WANT_TIMEOUT_STAT], [test "$enable_timeout_stat" = "static"])
-
 AC_CHECK_HEADERS([sys/syscall.h])
 AC_CHECK_DECLS([SYS_statx],
   [has_syscall_statx="yes"],