kopia lustrzana https://github.com/c9/core
use -ww instead of COLUMNS 1000
rodzic
db8e1a4adc
commit
ef11557828
|
@ -1610,9 +1610,9 @@ module.exports = function setup(fsOptions) {
|
||||||
|
|
||||||
function fetchPid(callback, retries){
|
function fetchPid(callback, retries){
|
||||||
if (!retries) retries = 0;
|
if (!retries) retries = 0;
|
||||||
// can we use ps axwww instead of COLUMNS?
|
// use axww to get full command
|
||||||
_execFile("ps", ["ax", "-opid,command"], {
|
_execFile("ps", ["ax", "-ww", "-opid,command"], {
|
||||||
maxBuffer: 1000 * 1024, env: {COLUMNS: 500}
|
maxBuffer: 1000 * 1024
|
||||||
}, function(err, stdout){
|
}, function(err, stdout){
|
||||||
var matches = (stdout || "").split("\n").filter(function(line) {
|
var matches = (stdout || "").split("\n").filter(function(line) {
|
||||||
return line.indexOf(watchFile) > -1
|
return line.indexOf(watchFile) > -1
|
||||||
|
|
Ładowanie…
Reference in New Issue