From 4ffd6292486f42628e1e9e01e3267daadc86698a Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 5 Jun 2012 17:52:03 +0530 Subject: 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 Reviewed-on: http://review.gluster.com/3523 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/mount/fuse/src/fuse-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/mount/fuse/src/fuse-bridge.c') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 385666b0..be394773 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 = { -- cgit