symfony/symfony — pull request #5391 by romainneutron (2012-08-30 13:42:12+00:00)
Title: [Process] Add a getPid method for process

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
License of the code: MIT

This method is particularly nice for sending posix signal to a process

example of use :

```php
// send a SIGCONT signal to the related process
posix_kill($process->getPid(), SIGCONT);
```

I've not implement the signal sender in the Process API because it requires posix environment, but I think could be nice to have it and throw an exception in case it's not supported.

What do you think about it ?