MCPcopy Create free account
hub / github.com/compozy/agh / signalProcess

Method signalProcess

internal/cli/cli_integration_test.go:3796–3810  ·  view source on GitHub ↗
(pid int, sig syscall.Signal)

Source from the content-addressed store, hash-verified

3794}
3795
3796func (d *integrationDaemon) signalProcess(pid int, sig syscall.Signal) error {
3797 d.mu.Lock()
3798 cancel := d.cancel
3799 running := d.running
3800 d.mu.Unlock()
3801
3802 if !running || pid != d.pid {
3803 return fmt.Errorf("integration daemon pid %d is not running", pid)
3804 }
3805 if sig != syscall.SIGTERM {
3806 return fmt.Errorf("unsupported signal %v", sig)
3807 }
3808 cancel()
3809 return nil
3810}
3811
3812func (d *integrationDaemon) processAlive(pid int) bool {
3813 d.mu.Lock()

Callers 6

newIntegrationHarnessFunction · 0.95
newDaemonStopCommandFunction · 0.80
stopDaemonForUninstallFunction · 0.80
cleanupOrphansMethod · 0.80
RequestRestartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected