mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-23 04:52:40 +00:00
Fix git zombie process
This commit is contained in:
parent
fddc50e3cc
commit
14dac703c8
1 changed files with 2 additions and 0 deletions
|
@ -99,6 +99,7 @@ func GetFileContent(user string, gist string, revision string, filename string,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", false, err
|
return "", false, err
|
||||||
}
|
}
|
||||||
|
defer cmd.Wait()
|
||||||
|
|
||||||
return truncateCommandOutput(stdout, maxBytes)
|
return truncateCommandOutput(stdout, maxBytes)
|
||||||
}
|
}
|
||||||
|
@ -126,6 +127,7 @@ func GetLog(user string, gist string, skip int) ([]*Commit, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
defer cmd.Wait()
|
||||||
|
|
||||||
return parseLog(stdout, 2<<18), nil
|
return parseLog(stdout, 2<<18), nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue