Browse Source

Serialize given -> real addr mapping.

multiapp-subsubapp
Benjamin Shelton 3 months ago
parent
commit
cedcb46919
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      service.go

+ 2
- 0
service.go View File

@@ -14,6 +14,7 @@ func Relaunch() error {
env := &fdenv{
Sockets: make([]*fdencode, 0),
ParentPID: os.Getpid(),
Addrs: make(map[string]string),
}

files, err := fds.Files()
@@ -24,6 +25,7 @@ func Relaunch() error {
for _, file := range files {
env.Sockets = append(env.Sockets, &fdencode{file.fp.Name(), file.fd})
}
env.Addrs = fds.addrmap

buf, _ := json.Marshal(env)
cwd, _ := os.Getwd()


Loading…
Cancel
Save