* [PATCH] compat_wait4 fix
@ 2003-05-29 4:06 Anton Blanchard
0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2003-05-29 4:06 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Hi,
sys_wait4 can return a pid and in this case we want to copy the struct
rusage out to userspace.
Anton
--- gr9/kernel/compat.c 2003-04-17 15:26:39.000000000 -0500
+++ gr9_cacheable_smp_h_2/kernel/compat.c 2003-05-28 21:29:06.000000000 -0500
@@ -362,8 +362,7 @@
ret = sys_wait4(pid, stat_addr ? &status : NULL, options, &r);
set_fs (old_fs);
- if (!ret)
- {
+ if (ret > 0) {
if (put_compat_rusage(ru, &r))
return -EFAULT;
if (stat_addr && put_user(status, stat_addr))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-29 3:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-29 4:06 [PATCH] compat_wait4 fix Anton Blanchard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox