diff options
author | Mura Li <typeless@users.noreply.github.com> | 2017-11-13 08:51:45 -0600 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-11-13 22:51:45 +0800 |
commit | f4d12f8d9711d54b022ef28c39c670f36700f8f7 (patch) | |
tree | 9ce1511be1d5406e26e55eaf75ff41b4a66ea7a1 /modules/auth/auth_form.go | |
parent | e9728bf3b4c763464db30e1259501cf38a7a20c7 (diff) | |
download | gitea-f4d12f8d9711d54b022ef28c39c670f36700f8f7.tar.gz gitea-f4d12f8d9711d54b022ef28c39c670f36700f8f7.zip |
Fix run command race (#1470)
* Use exec.CommandContext to simplfy timeout handling
And fixing the data races which can be identified by the added tests when -race enabled.
* Use sleep commmand instead of reading from stdin
* Make the error handling go-esque
Diffstat (limited to 'modules/auth/auth_form.go')
0 files changed, 0 insertions, 0 deletions