mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(socket) onCloudCmd: add process.exit
This commit is contained in:
parent
ab6b780ef7
commit
1b7ca9f7cd
1 changed files with 1 additions and 4 deletions
|
|
@ -243,10 +243,7 @@
|
|||
}
|
||||
|
||||
if( Util.strCmp(pCommand, 'exit') )
|
||||
if(WIN32)
|
||||
pCommand = 'taskkill -f /PID ' + process.pid;
|
||||
else
|
||||
pCommand = 'kill -9 ' + process.pid;
|
||||
process.exit();
|
||||
}
|
||||
else {
|
||||
jsonSend(pSocket, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue