diff options
author | arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> | 2023-04-17 11:27:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 11:27:17 -0700 |
commit | eed9f486bf88d2c79aa146f8cd2015dd334f480d (patch) | |
tree | b3d5c9d1f80ca0fd1df0bbebcea11726f25f7c4a | |
parent | d0957a96ce28f68cd21ce2742c06237f3fa93fbe (diff) | |
download | googleapis-enterprise-certificate-proxy-eed9f486bf88d2c79aa146f8cd2015dd334f480d.tar.gz |
fix: remove ecp.exe process checking/termination logic for windows (#74)
* fix: remove ecp.exe process checking/termination logic for windows signer
* chore: update
-rw-r--r-- | internal/signer/windows/signer.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/internal/signer/windows/signer.go b/internal/signer/windows/signer.go index 9ef64ab..6537ad6 100644 --- a/internal/signer/windows/signer.go +++ b/internal/signer/windows/signer.go @@ -28,7 +28,6 @@ import ( "os" "signer/ncrypt" "signer/util" - "time" ) // If ECP Logging is enabled return true @@ -116,17 +115,5 @@ func main() { log.Fatalf("Failed to register enterprise cert signer with net/rpc: %v", err) } - // If the parent process dies, we should exit. - // We can detect this by periodically checking if the PID of the parent - // process is 1 (https://stackoverflow.com/a/2035683). - go func() { - for { - if os.Getppid() == 1 { - log.Fatalln("Enterprise cert signer's parent process died, exiting...") - } - time.Sleep(time.Second) - } - }() - rpc.ServeConn(&Connection{os.Stdin, os.Stdout}) } |