|
@@ -129,7 +129,7 @@ FILE *popen(const char *command, const char *modes)
|
|
|
int pclose(FILE *stream)
|
|
|
{
|
|
|
struct popen_list_item *p;
|
|
|
- int stat;
|
|
|
+ int status;
|
|
|
pid_t pid;
|
|
|
|
|
|
|
|
@@ -164,8 +164,8 @@ int pclose(FILE *stream)
|
|
|
|
|
|
* terminates, in order to disallow pclose from returning on EINTR. */
|
|
|
do {
|
|
|
- if (waitpid(pid, &stat, 0) >= 0) {
|
|
|
- return stat;
|
|
|
+ if (waitpid(pid, &status, 0) >= 0) {
|
|
|
+ return status;
|
|
|
}
|
|
|
if (errno != EINTR) {
|
|
|
break;
|