diff options
-rw-r--r-- | glusterfsd/src/glusterfsd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index 7753c629216..42731660485 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1593,11 +1593,10 @@ cleanup_and_exit(int signum) #endif trav = NULL; + /* NOTE: Only the least significant 8 bits i.e (signum & 255) + will be available to parent process on calling exit() */ + exit(abs(signum)); } - pthread_mutex_unlock(&ctx->cleanup_lock); - /* NOTE: Only the least significant 8 bits i.e (signum & 255) - will be available to parent process on calling exit() */ - exit(abs(signum)); } static void |