Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Fix getting cwd in presence of lsof warnings #745

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

ravicious
Copy link
Member

lsof uses stderr to print out warnings. This caused the previous version
of ptyProcess to throw an error, even though the exit code of lsof was 0.

The existing code already handles non-zero exit codes (asyncExec will
reject the promise). Since we don't know why stderr was inspected in
the first place, let's just remove the check for it.

lsof uses stderr to print out warnings. This caused the previous version
of ptyProcess to throw an error, even though the exit code of lsof was 0.

The existing code already handles non-zero exit codes (asyncExec will
reject the promise). Since we don't know why stderr was inspected in
the first place, let's just remove the check for it.
@ravicious ravicious requested a review from gzdunek April 19, 2022 14:46
@ravicious ravicious enabled auto-merge (squash) April 19, 2022 14:51
@ravicious ravicious merged commit 92f8852 into master Apr 19, 2022
@ravicious ravicious deleted the ravicious/lsof-warning branch April 21, 2022 11:33
ravicious added a commit that referenced this pull request Apr 26, 2022
lsof uses stderr to print out warnings. This caused the previous version
of ptyProcess to throw an error, even though the exit code of lsof was 0.

The existing code already handles non-zero exit codes (asyncExec will
reject the promise). Since we don't know why stderr was inspected in
the first place, let's just remove the check for it.
ravicious added a commit that referenced this pull request Apr 27, 2022
lsof uses stderr to print out warnings. This caused the previous version
of ptyProcess to throw an error, even though the exit code of lsof was 0.

The existing code already handles non-zero exit codes (asyncExec will
reject the promise). Since we don't know why stderr was inspected in
the first place, let's just remove the check for it.
ravicious added a commit that referenced this pull request Apr 27, 2022
* Bring back native scrollbar as the styled one causes content to jump when it becomes visible

* Use new colors for theme

* Fix not clickable notifications when displayed over xterm

* Close `Identity` popover after selecting an option (#741)

* Fix getting cwd in presence of lsof warnings (#745)

lsof uses stderr to print out warnings. This caused the previous version
of ptyProcess to throw an error, even though the exit code of lsof was 0.

The existing code already handles non-zero exit codes (asyncExec will
reject the promise). Since we don't know why stderr was inspected in
the first place, let's just remove the check for it.

* Change connections shortcut to `Command/Ctrl-P` (#747)

* Resolve issues on logout (#740)

* Change app name to `Teleport Connect` (#753)

* Show database username suggestions in Teleport Connect (#754)

* Move useAsync to the shared package, add docs

* Add async variant of MenuLogin

* Add Teleport Connect version of MenuLogin to its story

* Update gRPC files

* Show database username suggestions

* Use JSdoc in useAsync

Co-authored-by: Grzegorz Zdunek <[email protected]>

* Convert useAsync to a named export

* Refactor MenuLogin to use useAsync underneath

* Rewrite useAsync to use a promise instead of async

The Web UI currently doesn't support `async`. To do this, we'd need to
configure polyfills there, but we don't have time for that right now.

* Replace async with promise in MenuLogin

Co-authored-by: Grzegorz Zdunek <[email protected]>

* Fix check for the --insecure flag (#758)

Fixes gravitational/webapps.e#147.

* Remove state related to a cluster when removing it (#755)

* Teleport Connect: Add dropdown for database name (#757)

* Add required prop to MenuLogin

This will be needed for the db name dropdown, where the value is optional.

* Update proto files

* Include targetSubresourceName when creating a gateway

* Set better title for gateway tab

* Fix long document titles breaking connection tracker's UI

Co-authored-by: Grzegorz Zdunek <[email protected]>
Co-authored-by: Grzegorz Zdunek <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants