Sobesednik / node-exiftool

A Node.js interface to exiftool command-line application.
MIT License
91 stars 15 forks source link

Add possibility to specify options to child_process.spawn #33

Closed mika-fischer closed 7 years ago

mika-fischer commented 7 years ago

In particular I need to pass {detached: true}. The reason is that when an application is interrupted by Ctrl-C, all child processes also receive SIGINT including the exiftool process. I would like to shield the exiftool process from that in order to be able to shut down my application in a controlled fashion.

z-vr commented 7 years ago

@mika-fischer ok i'll do it

z-vr commented 7 years ago

@mika-fischer thanks for opening this issue. The feature has landed in node-exiftool@2.3.0. Please beware that conhost.exe and a second exiftool.exe process will be open by exiftool on Windows platform -- which you then need to kill manually if you want to handle exit gracefully. See readme and test.