set_lgname allow for pid