Perhaps it's a fairly marginal use case, but I would like to be able to use mongo-tools (specifically mongodump) as a package in my own app. This is possible as of now, however there is a couple of unwanted behaviours that I'd love to be able to turn off.
Speaking of mongodump, it 1) spawns progress manager that dumps the progress of the execution to stdout and 2) sets up signal handlers that kill the app if triggered.
https://github.com/mongodb/mongo-tools/blob/master/mongodump/mongodump.go#L317
As far as my understanding of the code goes, these behaviours are optional in nature and it wouldn't hurt if you could pass a switch to Dump() that disables them.
Do you guys think this is viable?
- is related to
-
TOOLS-1341 consistent signal handling
- Closed