summaryrefslogtreecommitdiff
path: root/timedrun.c
diff options
context:
space:
mode:
authorManish Katiyar <mkatiyar@gmail.com>2017-12-28 09:20:20 -0800
committerdormando <dormando@rydia.net>2018-02-19 13:44:49 -0800
commitddd3fcdc39b9df318ff97639a3f181905afb4155 (patch)
tree93376df35c3e6bcb2aaa610d7cff8c5e083f41cf /timedrun.c
parent73bfa90283fd109d9edf72bb2ee6c13fde65879c (diff)
downloadmemcached-ddd3fcdc39b9df318ff97639a3f181905afb4155.tar.gz
Rename 'stats' to 'status' for readability.
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Diffstat (limited to 'timedrun.c')
-rw-r--r--timedrun.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/timedrun.c b/timedrun.c
index 6d7afb3..6888453 100644
--- a/timedrun.c
+++ b/timedrun.c
@@ -17,7 +17,7 @@ static void caught_signal(int which)
static int wait_for_process(pid_t pid)
{
int rv = EX_SOFTWARE;
- int stats = 0;
+ int status = 0;
int i = 0;
struct sigaction sig_handler;
@@ -32,12 +32,12 @@ static int wait_for_process(pid_t pid)
/* Loop forever waiting for the process to quit */
for (i = 0; ;i++) {
- pid_t p = waitpid(pid, &stats, 0);
+ pid_t p = waitpid(pid, &status, 0);
if (p == pid) {
/* child exited. Let's get out of here */
- rv = WIFEXITED(stats) ?
- WEXITSTATUS(stats) :
- (0x80 | WTERMSIG(stats));
+ rv = WIFEXITED(status) ?
+ WEXITSTATUS(status) :
+ (0x80 | WTERMSIG(status));
break;
} else {
int sig = 0;