more process wait hack for linux