Extract pid for node