aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/main.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-01-03 16:11:17 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-04 21:05:10 +0000
commit137e5c8ffd5e1d7abe47398d909c9611f19bfcbb (patch)
tree00d75fc65299cc9fea3364528b68c74899000fcc /cmd/podman/main.go
parent04593b1591fe78b5e8689ce144431a3f07c19fbe (diff)
downloadpodman-137e5c8ffd5e1d7abe47398d909c9611f19bfcbb.tar.gz
podman-137e5c8ffd5e1d7abe47398d909c9611f19bfcbb.tar.bz2
podman-137e5c8ffd5e1d7abe47398d909c9611f19bfcbb.zip
We no longer use stores
This code is from when we were using libkpod and kept track of stores. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #183 Approved by: TomSweeneyRedHat
Diffstat (limited to 'cmd/podman/main.go')
-rw-r--r--cmd/podman/main.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index 011303349..b27409e4c 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -98,17 +98,11 @@ func main() {
}
app.After = func(*cli.Context) error {
// called by Run() when the command handler succeeds
- shutdownStores()
if cpuProfile {
pprof.StopCPUProfile()
}
return nil
}
- cli.OsExiter = func(code int) {
- // called by Run() when the command fails, bypassing After()
- shutdownStores()
- os.Exit(code)
- }
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "cni-config-dir",
@@ -158,6 +152,5 @@ func main() {
} else {
fmt.Fprintln(os.Stderr, err.Error())
}
- cli.OsExiter(1)
}
}