Output child pid to debug log when forking.

Fixes #5756

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>