[Bugs] [Bug 1331938] New: glusterfsd: return actual exit status on mount process
bugzilla at redhat.com
bugzilla at redhat.com
Sat Apr 30 09:14:49 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1331938
Bug ID: 1331938
Summary: glusterfsd: return actual exit status on mount process
Product: GlusterFS
Version: 3.7.11
Component: core
Assignee: bugs at gluster.org
Reporter: prasanna.kalever at redhat.com
CC: bugs at gluster.org
Depends On: 1331042
+++ This bug was initially created as a clone of Bug #1331042 +++
Description of problem:
Currently, we always exit mount process with the pid as the exit number
which is return value of the waitpid(), it is not the exit value of the
child process
Version-Release number of selected component (if applicable):
mainline
Expected results:
exit with actual status/code
--- Additional comment from Vijay Bellur on 2016-04-27 10:10:06 EDT ---
REVIEW: http://review.gluster.org/14094 (glusterfsd: fix to return actual exit
status on mount process) posted (#1) for review on master by Prasanna Kumar
Kalever (pkalever at redhat.com)
--- Additional comment from Vijay Bellur on 2016-04-29 09:24:02 EDT ---
COMMIT: http://review.gluster.org/14094 committed in master by Jeff Darcy
(jdarcy at redhat.com)
------
commit 36d025ef6f178ce5d8c6f7fa09e1cf236976b5ea
Author: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Date: Wed Apr 27 19:29:09 2016 +0530
glusterfsd: fix to return actual exit status on mount process
Problem:
Currently, we always exit mount process with the pid as the exit number
which is return value of the waitpid(), it is not the exit value of the
child process
Solution:
Extract the actual exit code/status in case if the child terminated
normally,
that is, by calling exit(3) or _exit(2), or by returning from main()
Change-Id: Iefec6e27b5a5a98a22f016e49967978853662e37
BUG: 1331042
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever at redhat.com>
Reviewed-on: http://review.gluster.org/14094
Tested-by: Prasanna Kumar Kalever <pkalever at redhat.com>
Smoke: Gluster Build System <jenkins at build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
Reviewed-by: Raghavendra Talur <rtalur at redhat.com>
Reviewed-by: Jeff Darcy <jdarcy at redhat.com>
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1331042
[Bug 1331042] glusterfsd: return actual exit status on mount process
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list