gitsrht-shell: close database before exec
This commit is contained in:
parent
26809b6b5b
commit
f39c67ced8
|
@ -424,6 +424,7 @@ func main() {
|
|||
if err != nil {
|
||||
logger.Fatalf("exec.LookPath: %v", err)
|
||||
}
|
||||
db.Close()
|
||||
if err := syscall.Exec(bin, cmd, append(os.Environ(), fmt.Sprintf(
|
||||
"SRHT_PUSH_CTX=%s", string(pushContext)))); err != nil {
|
||||
|
||||
|
|
Loading…
Reference in New Issue