From c90811be754c1c6113dd2735dbd15f711b664b2f Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Fri, 30 Sep 2011 12:41:54 -0400 Subject: [PATCH] dont use named events or mutexs in case of multiple sessions (in multiuser environment) we can't create event with the same name. --- daemon/nfs41_rpc.c | 2 +- daemon/nfs41_session.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/nfs41_rpc.c b/daemon/nfs41_rpc.c index 560f2c7..953e41d 100644 --- a/daemon/nfs41_rpc.c +++ b/daemon/nfs41_rpc.c @@ -174,7 +174,7 @@ int nfs41_rpc_clnt_create( needcb = 0; #endif rpc->needcb = needcb; - rpc->cond = CreateEvent(NULL, TRUE, FALSE, "rpc_recovery_cond"); + rpc->cond = CreateEvent(NULL, TRUE, FALSE, NULL); if (rpc->cond == NULL) { status = GetLastError(); eprintf("CreateEvent failed %d\n", status); diff --git a/daemon/nfs41_session.c b/daemon/nfs41_session.c index 51c91b6..ee70a8e 100644 --- a/daemon/nfs41_session.c +++ b/daemon/nfs41_session.c @@ -40,14 +40,14 @@ static int init_slot_table(nfs41_slot_table *table) int i, status = 0; //initialize slot table lock - table->lock = CreateMutex(NULL, FALSE, "session_table_lock"); + table->lock = CreateMutex(NULL, FALSE, NULL); if (table->lock == NULL) { status = GetLastError(); eprintf("init_slot_table: CreateMutex failed %d\n", status); goto out; } //initialize condition variable for slots - table->cond = CreateEvent(NULL, TRUE, FALSE, "session_table_cond"); + table->cond = CreateEvent(NULL, TRUE, FALSE, NULL); if (table->cond == NULL) { status = GetLastError(); eprintf("init_slot_table: CreateEvent failed %d\n", status);