wait pid in extcomp