You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent intermittent race in attribute reader close (go-gitea#19537)
Backport go-gitea#19537
There is a potential rare race possible whereby the c.running channel could
be closed twice. Looking at the code I do not see a need for this c.running
channel and therefore I think we can remove this. (I think the c.running
might have been some attempt to prevent a hang but the use of os.Pipes should
prevent that.)
Signed-off-by: Andrew Thornton <[email protected]>
iferr!=nil&&// If there is an error we need to return but:
195
186
c.ctx.Err() !=err&&// 1. Ignore the context error if the context is cancelled or exceeds the deadline (RunWithContext could return c.ctx.Err() which is Canceled or DeadlineExceeded)
196
187
err.Error() !="signal: killed" { // 2. We should not pass up errors due to the program being killed
0 commit comments