Seldaek/monolog — pull request #266 by aeryaguzov (2013-11-04 08:18:50+00:00)
Title: add right pid for childs

Sample code to reproduce an issue:

```
logger = new Logger(
'test',
[
new StreamHandler(STDOUT)
],
[
new ProcessIdProcessor()
]
);
}

public function run()
{
$pid = pcntl_fork();

if ($pid == -1) {
throw new \RuntimeException('Can\'t fork new process!');
} elseif ($pid) {
$this->logger->info('parent', ['real_pid' => getmypid()]);
} else {
$this->logger->info('child', ['real_pid' => getmypid()]);
}
}
}

require __DIR__ . "/vendor/autoload.php";
$t = new Job();
$t->run();
```

Expected result:

[2013-11-04 12:02:48] test.INFO: parent {"real_pid":12978} {"process_id":12978}
[2013-11-04 12:02:48] test.INFO: child {"real_pid":12979} {"process_id":12979}

Actual result:

[2013-11-04 12:02:48] test.INFO: parent {"real_pid":12978} {"process_id":12978}
[2013-11-04 12:02:48] test.INFO: child {"real_pid":12979} {"process_id":12978}