Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (proc !== null) {
- proc.on("exit", (code, signal) => {
- done();
- });
- var isWin = /^win/.test(process.platform);
- if (!isWin) {
- kill(proc.pid);
- } else {
- exec(`taskkill /PID ${proc.pid} /T /F`, (error, stdout, stderr) => {
- if (error !== null) {
- console.log('exec error: ' + error);
- }
- });
- }
- } else {
- done();
- }
Add Comment
Please, Sign In to add comment