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

Detach from musl libc process #1089

Closed
iapaddler opened this issue Aug 29, 2022 · 1 comment · Fixed by #1118
Closed

Detach from musl libc process #1089

iapaddler opened this issue Aug 29, 2022 · 1 comment · Fixed by #1118
Assignees
Labels

Comments

@iapaddler
Copy link
Contributor

Handle the console I/O distinctly.

@iapaddler
Copy link
Contributor Author

iapaddler commented Sep 27, 2022

Test:
Start an Alpine container:
% cd appscope/test/integration
% make alpine-shell

Start Apache scoped:
% export SCOPE_EVENT_DEST=file:///opt/test/logs/events.log
% ldscope httpd -k start

In a second terminal:
% cd appscope/test/integration
% make alpine-exec
% tail -F /opt/test/logs/events.log

Validate that events are emitted as expected:
% curl -k https://localhost:443/
View events in the second terminal defined above

Detach from Apache:
% ps -ef | grep httpd (get a list of pids for httpd)
% ldscope --detach <pids> (run once for each httpd pid)

Validate that no events are emitted:
% curl -k https://localhost:443/
View events in the second terminal defined above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant