From 943a38e9f8beaaaa7fe741398c573fc458037723 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 10 Jun 2009 07:02:15 +0000 Subject: libglusterfsclient: reset the vmplist and vmpentries to 0 in glusterfs_reset - Generally glusterfs_reset is called after fork in child to empty out vmplist. Signed-off-by: Anand V. Avati --- libglusterfsclient/src/libglusterfsclient.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libglusterfsclient') diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index 89c57182e8d..f5465c841fa 100755 --- a/libglusterfsclient/src/libglusterfsclient.c +++ b/libglusterfsclient/src/libglusterfsclient.c @@ -1506,6 +1506,12 @@ glusterfs_umount_all (void) void glusterfs_reset (void) { + INIT_LIST_HEAD (&vmplist.list); + vmplist.entries = 0; + + memset (&lock, 0, sizeof (lock)); + pthread_mutex_init (&lock, NULL); + first_fini = first_init = 1; } -- cgit