From: Craig Small Date: Mon, 21 Nov 2022 09:53:46 +0000 (+1100) Subject: build-sys: Update for timeout removal X-Git-Tag: v23.6_rc1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed5f3a162db7c0b32faca90ffc454fd790ad1ebf;p=psmisc build-sys: Update for timeout removal --- diff --git a/README.md b/README.md index b904e3a..e076b7c 100644 --- 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. - diff --git a/configure.ac b/configure.ac index d37daca..723cf02 100644 --- a/configure.ac +++ b/configure.ac @@ -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"],