Files
todo-frontend/node_modules/licia/kill.js
Agent d12eea7693
Some checks failed
continuous-integration/drone/push Build is failing
fix: 微信登录补充保存username和role
2026-04-04 07:35:21 +00:00

20 lines
413 B
JavaScript

const isWindows = require('./isWindows');
const childProcess = require('child_process');
exports = function(pid) {
try {
let cmd = '';
if (isWindows) {
cmd = `taskkill /pid ${pid} /T /F`;
} else {
cmd = `kill ${pid} -9`;
}
childProcess.execSync(cmd);
} catch (e) {
/* eslint-disable no-empty */
}
};
module.exports = exports;