From fb3886e2e42c9b7ce551277d75ae27981f79bd6a Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 12 Jun 2024 14:32:32 +0900 Subject: [PATCH] =?UTF-8?q?=ED=95=98=EC=9C=84=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=EC=84=B8=EC=8A=A4=EC=97=90=20=ED=99=98=EA=B2=BD=EB=B3=80?= =?UTF-8?q?=EC=88=98=20=EC=A0=84=EB=8B=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/operation.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/operation.go b/client/operation.go index 6e66cd6..676aaee 100644 --- a/client/operation.go +++ b/client/operation.go @@ -413,7 +413,7 @@ func (hc *houstonClient) launch(meta *procmeta) error { go stdReader(meta.name, stdout, index) logger.Println("startChildProcess :", meta.cmd.Args) - meta.cmd.Env = append(meta.cmd.Env, fmt.Sprintf("HOUSTON_SIBLIING_INDEX=%d", index)) + meta.cmd.Env = append(os.Environ(), fmt.Sprintf("HOUSTON_SIBLIING_INDEX=%d", index)) err = meta.cmd.Start() if err == nil { logger.Println("process index, pid =", index, meta.cmd.Process.Pid) @@ -424,8 +424,6 @@ func (hc *houstonClient) launch(meta *procmeta) error { return err } -var errPrepareprocessLaunchFailed = errors.New("prepareProcessLaunch failed") - func (hc *houstonClient) startChildProcess(req *shared.StartProcessRequest, op protos.OperationClient) error { meta, err := prepareProcessLaunch(hc.config.StorageRoot, req) if err != nil {