max-mapper / punzip

partial unzip. can unzip and stream a single entry from a zip archive (requires fuse)
5 stars 1 forks source link

SIGINT isnt exiting immediately #1

Open max-mapper opened 9 years ago

max-mapper commented 9 years ago

to reproduce, run this and CTRL+C after a few seconds: punzip http://download.cms.gov/Research-Statistics-Data-and-Systems/Statistics-Trends-and-Reports/Medicare-Provider-Charge-Data/Downloads/PartD_Prescriber_PUF_NPI_DRUG_13.zip --entry=2 | csv-parser --separator=$'\t'

@mafintosh any ideas?

max-mapper commented 9 years ago

hmm I even tried putting require('epipebomb') into both punzip and csv-parser but I am still getting

events.js:141
      throw er; // Unhandled 'error' event
            ^
Error: write EPIPE
    at Object.exports._errnoException (util.js:843:11)
    at exports._exceptionWithHostPort (util.js:866:20)
    at WriteWrap.afterWrite (net.js:746:14)

when exiting the above pipeline