Fix: pass the process index

It's no related to the rolling restart feature,
but I'm pretty sure it's a bug, so let's fix it.