about summary refs log tree commit diff
path: root/src/stdio/pclose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/pclose.c')
-rw-r--r--src/stdio/pclose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/pclose.c b/src/stdio/pclose.c
index 080a4262..c64da405 100644
--- a/src/stdio/pclose.c
+++ b/src/stdio/pclose.c
@@ -7,7 +7,7 @@ int pclose(FILE *f)
 	int status, r;
 	pid_t pid = f->pipe_pid;
 	fclose(f);
-	while ((r=__syscall(SYS_wait4, pid, &status, 0, 0)) == -EINTR);
+	while ((r=__sys_wait4(pid, &status, 0, 0)) == -EINTR);
 	if (r<0) return __syscall_ret(r);
 	return status;
 }