From 74cf4d5cdfa79758820b4fbe424080509830b9be Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 10 Dec 2012 05:19:26 -0500 Subject: [PATCH] added windows support on terminal command: "cloudcmd exit" --- ChangeLog | 1 + lib/server/socket.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b79425b4..41e88a24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -172,6 +172,7 @@ config.json to env. * Fixed bug with opening empty files in CodeMiror. Editor window could not be cloused. +* Added windows support on terminal command: "cloudcmd exit". 2012.10.01, Version 0.1.7 diff --git a/lib/server/socket.js b/lib/server/socket.js index f20f5c14..20579ca7 100644 --- a/lib/server/socket.js +++ b/lib/server/socket.js @@ -60,7 +60,10 @@ update.get(); if( Util.strCmp(pCommand, 'exit') ) - pCommand = 'kill -9 ' + process.pid; + if(main.WIN32) + pCommand = 'taskkill /PID ' + process.pid; + else + pCommand = 'kill -9 ' + process.pid; } else { var lMsg = {