mirror of
https://github.com/atom/atom.git
synced 2026-01-27 15:58:00 -05:00
13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
const spawnSync = require('./spawn-sync')
|
|
|
|
const CONFIG = require('../config.js')
|
|
|
|
module.exports = function () {
|
|
if (process.platform === 'win32') {
|
|
// Use START as a way to ignore error if Atom.exe isnt running
|
|
childProcess.execSync(`START taskkill /F /IM ${CONFIG.appMetadata.productName}.exe`)
|
|
} else {
|
|
childProcess.execSync(`pkill -9 ${CONFIG.appMetadata.productName} || true`)
|
|
}
|
|
}
|