path: root/xlators/nfs/server/src/nlm4.h
diff options
authorRaghavendra Bhat <>2012-04-24 23:49:06 +0530
committerAnand Avati <>2012-05-21 18:33:26 -0700
commit25ee4c27d9beaac0bdbf640851639e12e8f625b2 (patch)
treea23e28ee770e9da91745b110ca95875cb57de4c8 /xlators/nfs/server/src/nlm4.h
parentc7cc38b66f5e8581815d4d680190b96592313bc3 (diff)
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/ 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: Tested-by: Gluster Build System <> Reviewed-by: Amar Tumballi <> Reviewed-by: Anand Avati <>
Diffstat (limited to 'xlators/nfs/server/src/nlm4.h')
1 files changed, 2 insertions, 0 deletions
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"
+#include <sys/types.h>
+#include <signal.h>
#include "rpcsvc.h"
#include "dict.h"
#include "xlator.h"