Skip to content

Commit 842e685

Browse files
authored
Removing dashes for ps command (#2185)
1 parent bf7287e commit 842e685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/Debugger/nativeAttach.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export class PsProcessParser {
111111
// Note that comm on Linux systems is truncated to 16 characters:
112112
// https://bugzilla.redhat.com/show_bug.cgi?id=429565
113113
// Since 'args' contains the full path to the executable, even if truncated, searching will work as desired.
114-
public static get psLinuxCommand(): string { return `ps -axww -o pid=,comm=${PsProcessParser.commColumnTitle},args=`; }
115-
public static get psDarwinCommand(): string { return `ps -axww -o pid=,comm=${PsProcessParser.commColumnTitle},args= -c`; }
114+
public static get psLinuxCommand(): string { return `ps axww -o pid=,comm=${PsProcessParser.commColumnTitle},args=`; }
115+
public static get psDarwinCommand(): string { return `ps axww -o pid=,comm=${PsProcessParser.commColumnTitle},args= -c`; }
116116

117117
// Only public for tests.
118118
public static ParseProcessFromPs(processes: string): Process[] {

0 commit comments

Comments
 (0)