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.
-
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"],