This commit is contained in:
Shreyas Goenka 2025-02-18 14:59:29 +01:00
parent c59b11f7c1
commit dfd26e37ae
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 2 deletions

View File

@ -20,8 +20,7 @@ func newChildCommand() *cobra.Command {
// Note: The golang stdlib only provides a way to wait on processes // Note: The golang stdlib only provides a way to wait on processes
// that are children of the current process. While it's possible to // that are children of the current process. While it's possible to
// rely on os native syscalls to wait on arbitrary processes, it's hard // rely on os native syscalls to wait on arbitrary processes, it's hard
// to get right and test. So I opted to just rely on the wait_pid // to get right and test.
// script here.
waitCmd := exec.Command("bash", "-euo", "pipefail", "wait_pid", os.Getenv(daemon.DatabricksCliParentPid)) waitCmd := exec.Command("bash", "-euo", "pipefail", "wait_pid", os.Getenv(daemon.DatabricksCliParentPid))
b, err := waitCmd.Output() b, err := waitCmd.Output()
if err != nil { if err != nil {