[mod_proxy] test failures leave running processes
while improving my patch for #2434, I've made my initially-patched tests go wrong by passing empty substrings in the proxy.forward-env-vars config variable (due to prev+1 in strchr()). Unfortunately, the real server doesn't go away when the proxy server is killed, so subsequent tests all fail, and one has to run “killall lighttpd” to get rid of the running process.
The attached patch kills real+proxy instances explicitly, to make sure everyone goes away, no matter what the failure mode is.
tests: make sure mod_proxy doesn't leave running processes (fixes #2435, thx kibi)
In case the proxy instance goes wrong, the clean-up doesn't kill the
real instance. So close both instances explicitly in the clean-up
Signed-off-by: Cyril Brulebois <email@example.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2857 152afb58-edef-0310-8abb-c4023f1b3aa9
Also available in: Atom