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){
|
||||
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
|
||||
|
|
Ładowanie…
Reference in New Issue