diff options
author | Manish Katiyar <mkatiyar@gmail.com> | 2017-12-28 09:20:20 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2018-02-19 13:44:49 -0800 |
commit | ddd3fcdc39b9df318ff97639a3f181905afb4155 (patch) | |
tree | 93376df35c3e6bcb2aaa610d7cff8c5e083f41cf /timedrun.c | |
parent | 73bfa90283fd109d9edf72bb2ee6c13fde65879c (diff) | |
download | memcached-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |