Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starts lldb in MacOS terminal for the server instances ran from mtr. #470

Merged
merged 1 commit into from
May 11, 2016

Conversation

vlad-lesin
Copy link
Contributor

The patch uses system "open" command to start lldb in terminal:
open -W -a Terminal path_to_script
where 'path_to_script' is the path to the script which starts lldb with
corresponding options.

The drawback of this approach is that mtr waits for the terminal
termination instead of waiting for the correspondent terminal windows to
be closed. So if you use system terminal for work and there are already
opened windows/tabs mtr will wait until all of them are closed. The
workaround is in using third-party terminals(for example iterm) for work
and the standard system terminal for debugging.

http://jenkins.percona.com/view/PS%205.6/job/percona-server-5.6-param/1123/

@laurynas-biveinis
Copy link
Contributor

Have you tried -n flag for open to start a new Terminal process? Would that resolve the drawback?

The patch uses system "open" command to start lldb in terminal:
open -n -W -a Terminal path_to_script
where 'path_to_script' is the path to the script which starts lldb with
corresponding options.
@vlad-lesin
Copy link
Contributor Author

Have you tried -n flag for open to start a new Terminal process? Would that resolve the drawback?

Yes, this helped, thank you. Fixed.

@laurynas-biveinis
Copy link
Contributor

LGTM, please upmerge to 5.7 and also send to Oracle by OCA

@vlad-lesin vlad-lesin merged commit a415d12 into percona:5.6 May 11, 2016
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 23, 2020
percona#470)

Summary:
?m plain C to struct++

Touched up all calls to old implementation.
Closes facebook/mysql-5.6#470

Differential Revision: D4316193

Pulled By:
gunnarku

fbshipit-source-id: ed527f8

fbshipit-source-id: 270f9132381
inikep pushed a commit to inikep/percona-server that referenced this pull request Feb 24, 2021
percona#470)

Summary:
?m plain C to struct++

Touched up all calls to old implementation.
Closes facebook/mysql-5.6#470

Differential Revision: D4316193

Pulled By:
gunnarku

fbshipit-source-id: ed527f8

fbshipit-source-id: 270f9132381
inikep pushed a commit to inikep/percona-server that referenced this pull request Nov 15, 2021
percona#470) (percona#470)

Summary:
?m plain C to struct++

Touched up all calls to old implementation.
Closes facebook/mysql-5.6#470

Differential Revision: D4316193 (facebook/mysql-5.6@ca2174a)

Pulled By: gunnarku

fbshipit-source-id: 459f50d704d
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
percona#470) (percona#470)

Summary:
?m plain C to struct++

Touched up all calls to old implementation.
Closes facebook/mysql-5.6#470

Differential Revision: D4316193

Pulled By: gunnarku
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 9, 2024
percona#470) (percona#470)

Summary:
?m plain C to struct++

Touched up all calls to old implementation.
Closes facebook/mysql-5.6#470

Differential Revision: D4316193

Pulled By: gunnarku
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants