Bug #37630 proxy chassis should remove the pid-file when exiting
Submitted: 25 Jun 2008 15:11
Reporter: Kay Roepke
Status: Verified
Category:Proxy: Core Severity:S4 (Feature request)
Version:0.7.0 OS:Any
Assigned to: Diego Medina Target Version:
Tags: pid, proxy
Triage: D5 (Feature request)

[25 Jun 2008 15:11] Kay Roepke
Description:
Currently, if the proxy is started as a daemon it does not remove its file when exiting
cleanly (via exit() or return from main).

How to repeat:
Run mysql-proxy in daemon mode and set --pid-file=/tmp/proxy.pid.

After the proxy-exits, a stale pid file is left.

Suggested fix:
unlink the pid file before returning from main
currently that would break the test-suite (run-tests.lua), so we need to rework some of
the test harness to make it happen.