mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
notify_socket: setupSpec: drop ctx arg and return value
Those were never used (ctx was added by the initial commit, and
error was added by commit 25fd4a6757).
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
+1
-3
@@ -387,9 +387,7 @@ func startContainer(context *cli.Context, action CtAct, criuOpts *libcontainer.C
|
||||
|
||||
notifySocket := newNotifySocket(context, os.Getenv("NOTIFY_SOCKET"), id)
|
||||
if notifySocket != nil {
|
||||
if err := notifySocket.setupSpec(context, spec); err != nil {
|
||||
return -1, err
|
||||
}
|
||||
notifySocket.setupSpec(spec)
|
||||
}
|
||||
|
||||
container, err := createContainer(context, id, spec)
|
||||
|
||||
Reference in New Issue
Block a user