提交 f9b7f978 编写于 作者: E Eugene Pankov

handle cwd detection errors on linux

上级 59ce7eee
......@@ -281,7 +281,7 @@ export class Session extends BaseSession {
}
if (process.platform === 'linux') {
try {
return fs.readlink(`/proc/${this.truePID}/cwd`)
return await fs.readlink(`/proc/${this.truePID}/cwd`)
} catch (exc) {
console.error(exc)
return null
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册