log.c updated. Child tmp file will inherit from paretn