pass master pid to workers
fix signals