Skip to content

Commit

Permalink
Added close to FD in init
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Lum <[email protected]>
  • Loading branch information
lumjjb committed Aug 28, 2018
1 parent b7ecbb3 commit 0cd39e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcontainer/init_nabla.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func initNabla() error {
if _, err := syscall.Write(fd, []byte("0")); err != nil {
return newSystemErrorWithCause(err, "write 0 exec fifo")
}
syscall.Close(fd)
syscall.Close(rootfd)

if err := syscall.Exec(config.Args[0], config.Args, os.Environ()); err != nil {
Expand Down

0 comments on commit 0cd39e5

Please sign in to comment.