use -ww instead of COLUMNS 1000

pull/117/merge
nightwing 2015-07-08 17:31:46 +04:00
rodzic db8e1a4adc
commit ef11557828
1 zmienionych plików z 3 dodań i 3 usunięć

6
node_modules/vfs-local/localfs.js wygenerowano vendored
Wyświetl plik

@ -1610,9 +1610,9 @@ module.exports = function setup(fsOptions) {
function fetchPid(callback, retries){
if (!retries) retries = 0;
// can we use ps axwww instead of COLUMNS?
_execFile("ps", ["ax", "-opid,command"], {
maxBuffer: 1000 * 1024, env: {COLUMNS: 500}
// use axww to get full command
_execFile("ps", ["ax", "-ww", "-opid,command"], {
maxBuffer: 1000 * 1024
}, function(err, stdout){
var matches = (stdout || "").split("\n").filter(function(line) {
return line.indexOf(watchFile) > -1