From 25ee4c27d9beaac0bdbf640851639e12e8f625b2 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 24 Apr 2012 23:49:06 +0530 Subject: nlm: do not use killall command to kill rpc.statd killall command will kill the rpc.statd process only in normal mode. If the process is running in valgrind mode, then killall is not able to kill rpc.statd and several instances of rpc.statd will be running for every restart of the nfs server (graph changes etc). So to avoid that get the pid of rpc.statd using /var/run/rpc.statd.pid and send SIGKILL signal to that pid to accomplish what killall command was doing. Change-Id: I2509bf918ddd0dcdd9a4562ee23f13488c7a5979 BUG: 815756 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/3225 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Anand Avati --- xlators/nfs/server/src/nlm4.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/nfs/server/src/nlm4.h') diff --git a/xlators/nfs/server/src/nlm4.h b/xlators/nfs/server/src/nlm4.h index bcc7ae573..0cc82f162 100644 --- a/xlators/nfs/server/src/nlm4.h +++ b/xlators/nfs/server/src/nlm4.h @@ -25,6 +25,8 @@ #include "config.h" #endif +#include +#include #include "rpcsvc.h" #include "dict.h" #include "xlator.h" -- cgit