summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse
diff options
context:
space:
mode:
authorCsaba Henk <csaba@redhat.com>2012-06-05 17:52:03 +0530
committerAnand Avati <avati@redhat.com>2012-06-05 10:40:34 -0700
commit4ffd6292486f42628e1e9e01e3267daadc86698a (patch)
tree74807fbc8411abe6142ad3c69fe6d94541b088ef /xlators/mount/fuse
parente57280a9470cb21750954a740b3aa94929321ae9 (diff)
fuse: be good at suicide
We get hung on the exit path if we kill only the current thread on AUTH_FAILED. Kill indeed the current process. Change-Id: I36042f245a22bd2a284df37fd6d3a3e0b76f81e9 BUG: 826975 Signed-off-by: Csaba Henk <csaba@redhat.com> Reviewed-on: http://review.gluster.com/3523 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mount/fuse')
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 385666b0c..be394773b 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -4637,7 +4637,7 @@ fini (xlator_t *this_xl)
/* Process should terminate once fuse xlator is finished.
* Required for AUTH_FAILED event.
*/
- raise (SIGTERM);
+ kill (getpid (), SIGTERM);
}
struct xlator_fops fops = {