syscall: prlimit argument error for Getrlimit and Setrlimit on Linux 32-bit
The rlimit arguments for prlimit are reversed for linux 32-bit (386 and arm).
Getrlimit becomes Setrlimit and vice versa.
Fixes issue 5949.
https://codereview.appspot.com/11803043/diff/14001/src/pkg/syscall/syscall_linux_32_test.go File src/pkg/syscall/syscall_linux_32_test.go (right): https://codereview.appspot.com/11803043/diff/14001/src/pkg/syscall/syscall_linux_32_test.go#newcode6 src/pkg/syscall/syscall_linux_32_test.go:6: // +build 386 arm Why not run the test ...
11 years, 5 months ago
(2013-07-25 04:21:41 UTC)
#3
https://codereview.appspot.com/11803043/diff/21001/src/pkg/syscall/rlimit_linux_test.go File src/pkg/syscall/rlimit_linux_test.go (right): https://codereview.appspot.com/11803043/diff/21001/src/pkg/syscall/rlimit_linux_test.go#newcode20 src/pkg/syscall/rlimit_linux_test.go:20: return you can drop return just after t.Fatalf https://codereview.appspot.com/11803043/diff/21001/src/pkg/syscall/rlimit_linux_test.go#newcode37 ...
11 years, 5 months ago
(2013-07-25 09:59:17 UTC)
#6
*** Submitted as https://code.google.com/p/go/source/detail?r=ba52f6399462 *** syscall: prlimit argument error for Getrlimit and Setrlimit on Linux ...
11 years, 5 months ago
(2013-07-25 13:56:12 UTC)
#10
Issue 11803043: code review 11803043: syscall: prlimit argument error for Getrlimit and Setrl...
Created 11 years, 5 months ago by peterGo
Modified 11 years, 5 months ago
Reviewers:
Base URL:
Comments: 12