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
-2
@@ -43,7 +43,7 @@ func (s *notifySocket) Close() error {
|
||||
|
||||
// If systemd is supporting sd_notify protocol, this function will add support
|
||||
// for sd_notify protocol from within the container.
|
||||
func (s *notifySocket) setupSpec(context *cli.Context, spec *specs.Spec) error {
|
||||
func (s *notifySocket) setupSpec(spec *specs.Spec) {
|
||||
pathInContainer := filepath.Join("/run/notify", path.Base(s.socketPath))
|
||||
mount := specs.Mount{
|
||||
Destination: path.Dir(pathInContainer),
|
||||
@@ -52,7 +52,6 @@ func (s *notifySocket) setupSpec(context *cli.Context, spec *specs.Spec) error {
|
||||
}
|
||||
spec.Mounts = append(spec.Mounts, mount)
|
||||
spec.Process.Env = append(spec.Process.Env, "NOTIFY_SOCKET="+pathInContainer)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *notifySocket) bindSocket() error {
|
||||
|
||||
Reference in New Issue
Block a user