Fix so signals are sent to the right pid.