]> Cypherpunks repositories - gostls13.git/commit
os: remove useless if from Wait on unix
authorKir Kolyshkin <kolyshkin@gmail.com>
Mon, 20 Nov 2023 21:16:13 +0000 (13:16 -0800)
committerGopher Robot <gobot@golang.org>
Tue, 21 Nov 2023 20:39:17 +0000 (20:39 +0000)
commit3548f9a01f12f691f32ea7f0279b7949650e69b7
tree928a06f469d34c8f856c84006985c3e1b6a339af
parent00715d089d68c1dd43ed1f508e8937c5208fb6f0
os: remove useless if from Wait on unix

Back in the day, Wait used to accept options argument.

CL 4962042 fixed the issue of setting process.done flag when WNOHANG
option was used.

Later, CL 5688046 removed options argument from Wait, but did not remove
pid1 != 0 check which was meant to be used with WNOHANG only.

Remove the check, which is useless and also confusing.

Change-Id: I73b9ef4a0dbe35466e659ca58b896d515ba86d02
Reviewed-on: https://go-review.googlesource.com/c/go/+/543736
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/os/exec_unix.go