From a3d0286cb8190db5e96a3916725b3b5633acffce Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 23 May 2017 20:19:45 +0400 Subject: [PATCH] fix serverlist --- plugins/c9.ide.processlist/processlist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/c9.ide.processlist/processlist.js b/plugins/c9.ide.processlist/processlist.js index 5304805d..eca0e12b 100644 --- a/plugins/c9.ide.processlist/processlist.js +++ b/plugins/c9.ide.processlist/processlist.js @@ -237,7 +237,8 @@ define(function(require, exports, module) { function updateServerList() { setModel(null, model.columnsLsof); proc.execFile("bash", { args: ["-c", - "sudo -n lsof -P -i -F pcnTtu || lsof -P -i -F pcnTtu" + // try both with sudo and without, to get all servers + "sudo -n lsof -P -i -F pcnTtu; lsof -P -i -F pcnTtu" ]}, function(err, stdout, stderr) { if (err) return; var json = [];