Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
os: implement replacement for Waitmsg #2949
Text by the primary fitz from closed 2383: Problems with the bits in *os.Process Wait(options int) 1) they're non-portable 2) they're a mix of syscall bit numberspace and Go-assigned numbers (1 << 20 for os.WRUSAGE) We should clean this up somehow: a) remove the options parameter to Wait b) keep the options parameter, but document the bits as all Go-defined portable bits (like FileMode) c) document that they're all syscall bits and pass them along, but don't provide alias. force callers to use syscall.WNOHANG, etc. that leaves WRUSAGE, but we could just always return that, and remove WRUSAGE.
This issue was closed.