Skip to content

Commit c7e72d7

Browse files
committed
Speed up lsof by avoiding unneeded work
Fixes microsoft#78438
1 parent 334b636 commit c7e72d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/contrib/terminal/node/terminalProcess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
260260
return;
261261
}
262262
this._logService.trace('IPty#pid');
263-
exec('lsof -p ' + this._ptyProcess.pid + ' | grep cwd', (error, stdout, stderr) => {
263+
exec('lsof -OPl -p ' + this._ptyProcess.pid + ' | grep cwd', (error, stdout, stderr) => {
264264
if (stdout !== '') {
265265
resolve(stdout.substring(stdout.indexOf('/'), stdout.length - 1));
266266
}

0 commit comments

Comments
 (0)