first commit

This commit is contained in:
Francois Klieber committed 2021-06-06 20:25:14 +02:00
commit aa7869eb33
386 files changed
+69375

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
var ForkTask = require('relieve').tasks.ForkTask;
var fork = require('child_process').fork;
module.exports = function(config, done) {
var debug = typeof v8debug === 'object';
if (debug) {
process.execArgv = [];
}
task = new ForkTask(fork(__dirname + '/child'));
task.send('start', config);
task.once('ranges', ranges => {
return done(false, ranges);
});
task.on('exit', code => {
if(code !== 0)
done('ERROR, unable to scan dateranges, please check the console.');
});
}