Skip to content

Commit 2e4e484

Browse files
mlaventurecrosbymichael
authored andcommitted
Stop creating /tmp/shim-delete-<pid> as noone uses it (containerd#278)
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
1 parent b93a33b commit 2e4e484

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

containerd-shim/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"flag"
55
"fmt"
6-
"io/ioutil"
76
"os"
87
"os/signal"
98
"path/filepath"
@@ -115,7 +114,6 @@ func start(log *os.File) error {
115114
}
116115
// runtime has exited so the shim can also exit
117116
if exitShim {
118-
ioutil.WriteFile(fmt.Sprintf("/tmp/shim-delete-%d", p.pid()), []byte("deleting"), 0600)
119117
p.delete()
120118
p.Wait()
121119
return nil

0 commit comments

Comments
 (0)