summaryrefslogtreecommitdiff
path: root/execdriver/native/info.go
diff options
context:
space:
mode:
authorunclejack <unclejack@users.noreply.github.com>2014-04-09 01:56:01 +0300
committerunclejack <unclejack@users.noreply.github.com>2014-04-09 01:56:01 +0300
commite128a606e39fa63c6b4fd6e53a1d88cf00aad868 (patch)
tree199ee7eb6678ffecd2ddad95fce794c795ad5183 /execdriver/native/info.go
parent143c9707a9fafc39e1d9747f528db97b2564f01e (diff)
parentdc9c28f51d669d6b09e81c2381f800f1a33bb659 (diff)
downloaddocker-release-0.10.tar.gz
Merge pull request #5079 from unclejack/bump_v0.10.0release-0.100.10.1-hotfixes
Bump version to v0.10.0
Diffstat (limited to 'execdriver/native/info.go')
-rw-r--r--execdriver/native/info.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/execdriver/native/info.go b/execdriver/native/info.go
deleted file mode 100644
index aef2f85c6b..0000000000
--- a/execdriver/native/info.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package native
-
-import (
- "os"
- "path/filepath"
-)
-
-type info struct {
- ID string
- driver *driver
-}
-
-// IsRunning is determined by looking for the
-// pid file for a container. If the file exists then the
-// container is currently running
-func (i *info) IsRunning() bool {
- if _, err := os.Stat(filepath.Join(i.driver.root, i.ID, "pid")); err == nil {
- return true
- }
- return false
-}