diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2016-04-21 14:38:16 +0530 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-04-25 07:18:09 -0700 |
commit | 19fd9a371fff4ece2c617f1e7194ffcee039f21e (patch) | |
tree | caad98d94dcbe7df9942bec272f0eebb61b9d390 /tests/vagrant/vagrant-template-centos6/Vagrantfile | |
parent | 760dfb6e8aebc44b419e8943e4e3895591097b8b (diff) |
runner: extract and return actual exit status of child
Intro:
pid_t waitpid(pid_t pid, int *status, int options);
The waitpid() system call suspends execution of the calling process
until a child specified by pid argument has changed state.
Here the ret (pid) value is not equal to the exit status of the child process.
Check manpages for more info on this.
Problem:
In the current runner framework we always return the pid i.e ret value
of the waitpid, as said above 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: Iffae99a43e540af66917b3745f21ea3c2a5a3c2d
BUG: 1329129
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Reviewed-on: http://review.gluster.org/14042
Tested-by: Prasanna Kumar Kalever <pkalever@redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Smoke: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'tests/vagrant/vagrant-template-centos6/Vagrantfile')
0 files changed, 0 insertions, 0 deletions