unbit/uwsgi — pull request #217 by prymitive (2013-04-08 08:35:53+00:00)
Title: zero pids after worker killed due to --idle usage

It looks that worker pids are simply not zeroed after ```--idle``` kicks in, but maybe they should be zeroed somewhere else?

Also this SIGKILL seems brutal, isn't it possible that we be lucky enough to send SIGKILL just after new request was received? Wouldn't it be better to mark worker as ready for graceful shutdown (and each request would reset such marker) ?

```
uwsgi --wsgi-file tests/staticfile.py -L -M --idle 2 -p 20 --http :8080 --cheaper 1 --cheaper-initial 10 --auto-procname --stats :4444
```

is enough to test it, after idle check pids in stat socket