Treating devnull as a file