Sounds sort of like a lighttpd bug. I don't think a CGI process should ever be respawned under any circumstances.