Skip to content

Commit

Permalink
dbs.server.Process.Signal(os.Interrupt) instead of kill , kill causes…
Browse files Browse the repository at this point in the history
… mongod exit unexpected

dbs.server.Process.Signal(os.Interrupt) instead of kill , kill causes mongod exit unexpected
  • Loading branch information
navy1125 committed Oct 14, 2015
1 parent 7adfcd1 commit c89feac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbtest/dbserver.go
Expand Up @@ -111,7 +111,7 @@ func (dbs *DBServer) Stop() {
}
if dbs.server != nil {
dbs.tomb.Kill(nil)
dbs.server.Process.Kill()
dbs.server.Process.Signal(os.Interrupt)
select {
case <-dbs.tomb.Dead():
case <-time.After(5 * time.Second):
Expand Down

0 comments on commit c89feac

Please sign in to comment.