Sentence:  He opened it a crack and in <WSD>doing</WSD> so made as much shuffling , coughing , and scraping noise as possible in order to drown emanations from the hen who had begun to protest . 
Meaning of the word marked with <WSD> tags:  engage in