Skip to content

Commit ef5496d

Browse files
WJayWJayklook
andauthored
fix: ps-cmd result may be truncated (#52)
Co-authored-by: klook <jian.wu@klook.com>
1 parent be89f9d commit ef5496d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports.findNodeProcess = function* (filterFn) {
88
const command = isWin ?
99
'wmic Path win32_process Where "Name = \'node.exe\'" Get CommandLine,ProcessId' :
1010
// command, cmd are alias of args, not POSIX standard, so we use args
11-
'ps -eo "pid,args"';
11+
'ps -wweo "pid,args"';
1212
const stdio = yield runScript(command, { stdio: 'pipe' });
1313
const processList = stdio.stdout.toString().split('\n')
1414
.reduce((arr, line) => {

0 commit comments

Comments
 (0)