kraman/dart-example — pull request #1 by nfrancois (2012-06-20 22:59:25+00:00)
Title: Fix stop dart vm (vm was not killed)

When I ```ctl_app stop``` server not shutdown and always run, when I push or restart, I got bind adress error.

I found a error in stop hook
When I am log to OpenShift :
```
$ ps -ea
PID TTY TIME CMD
5543 ? 00:00:00 ps
27099 ? 00:00:00 sshd
27100 ? 00:00:00 bash
```

The actual stop :
````
ps -u ${uname} | grep dart | grep -v grep | awk '{ print $2 }'
```
return ```?``` coming from TTY

Must be :
```
ps -u ${uname} | grep dart | grep -v grep | awk '{ print $1 }
```
to return correct pid and kill dart vm.

This problem cause strange effect : when I was serving file more than 128ko (like jpeg or dart.js), connection was closed.
With this fix, it serves well.