about summary refs log tree commit diff
path: root/libio/tst-popen1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/tst-popen1.c')
-rw-r--r--libio/tst-popen1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/tst-popen1.c b/libio/tst-popen1.c
index bae6615b9b..9f36b20090 100644
--- a/libio/tst-popen1.c
+++ b/libio/tst-popen1.c
@@ -21,7 +21,7 @@ do_test (void)
 	  res = 1;
 	}
 
-      fclose (fp);
+      pclose (fp);
     }
 
   fp = popen ("echo hello", "re");
@@ -39,7 +39,7 @@ do_test (void)
 	  res = 1;
 	}
 
-      fclose (fp);
+      pclose (fp);
     }
 
   return res;