summaryrefslogtreecommitdiff
path: root/aclocal
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2016-04-28 16:21:41 -0400
committerSteve Dickson <steved@redhat.com>2016-04-29 10:37:53 -0400
commit8c34e538ef7492fda87b640343996dd33a2fde1d (patch)
tree32f61476c24357e9c1d717ee181013999924ae73 /aclocal
parentbf97c20a6c3b8d037663e23a39bcf2f003ec12ee (diff)
downloadnfs-utils-8c34e538ef7492fda87b640343996dd33a2fde1d.tar.gz
gssd: use pthreads to handle upcalls
Currently, to persevere global data over multiple mounts, the root process does not fork when handling an upcall. Instead on not-forking create a pthread to handle the upcall since global data can be shared among threads. Reviewed-by: Jeff Layton <jlayton@poochiereds.net> Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'aclocal')
-rw-r--r--aclocal/libpthread.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/aclocal/libpthread.m4 b/aclocal/libpthread.m4
new file mode 100644
index 0000000..e87d2a0
--- /dev/null
+++ b/aclocal/libpthread.m4
@@ -0,0 +1,13 @@
+dnl Checks for pthreads library and headers
+dnl
+AC_DEFUN([AC_LIBPTHREAD], [
+
+ dnl Check for library, but do not add -lpthreads to LIBS
+ AC_CHECK_LIB([pthread], [pthread_create], [LIBPTHREAD=-lpthread],
+ [AC_MSG_ERROR([libpthread not found.])])
+ AC_SUBST(LIBPTHREAD)
+
+ AC_CHECK_HEADERS([pthread.h], ,
+ [AC_MSG_ERROR([libpthread headers not found.])])
+
+])dnl