Navigation Menu

Skip to content

0007 gauge daemon polls parent process status

nehashri edited this page Sep 25, 2017 · 1 revision

7. Gauge daemon polls for parent process status

This ADR has been recorded retrospectively.

Status

Accepted

Context

When gauge daemon is started by IDE, the gauge process is created as a child process of the IDE. This is to ensure that gauge daemon is kill when the IDE is closed. But sometimes in Visual Studio, this would not happen correctly. The gauge daemon would still be running as an orphan process even after closing the IDE.

Decision

Gauge daemon should continuously poll for the status of the To fix this, gauge runs a separate go routine, which keeps checking if the parent process is still alive. If it finds that the parent process has been killed, gauge kills itself. Refer this issue for the fix.

Consequences