[libgo] Replace wait4 by waitpid (PR go/47515)
Ian Lance Taylor
iant@google.com
Thu Mar 31 00:03:00 GMT 2011
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
> Currently, libgo uses wait4 unconditionally, which is missing on IRIX
> 6.5. Fortunately, the rusage * arg is used nowhere, so I've decide to
> replace wait4 by waitpid, which seems to be considerably more portable.
Thanks for the patch, but I wasn't entirely happy with the approach
because it removes the os.Waitmsg.Rusage field. That field is
inherently system dependent but I would rather not get rid of it. I
wrote this patch instead, which I hope will also solve the problem.
Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.
Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 4366 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110331/400edb12/attachment.bin>
More information about the Gcc-patches
mailing list