dfork in cpp