Skip to content

dlopen utility #2337

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

Merged
merged 1 commit into from
May 1, 2025
Merged

dlopen utility #2337

merged 1 commit into from
May 1, 2025

Conversation

brooksdavis
Copy link
Member

@brooksdavis brooksdavis commented Feb 22, 2025

Attempts to dlopen each command line argument then sleeps. Useful for demoing the idea of plugins without a real plugin system.

TODO:

  • options for sleep time, dlopen paramaters, etc
  • manpage

Copy link
Collaborator

@bsdjhb bsdjhb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The style suggestions all seem correct from the checker.

FWIW, I tend to use (void)getchar() in my test programs when I want them to hang around while I use a debugger, etc. A timeout is fine though.

@brooksdavis brooksdavis force-pushed the dlopen-program branch 2 times, most recently from 48d3650 to d0060dd Compare April 23, 2025 20:55
@brooksdavis
Copy link
Member Author

FWIW, I tend to use (void)getchar() in my test programs when I want them to hang around while I use a debugger, etc. A timeout is fine though.

I switched to this as the default behavior, but kept the sleep option.

Copy link
Collaborator

@bsdjhb bsdjhb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nits and a question, overall looks good to me

Attempts to dlopen each command line argument then sleeps.  This allows
trivial demonstration of the impact of loading various libraries without
the need to write custom code.
@brooksdavis brooksdavis merged commit ecdeada into dev May 1, 2025
29 checks passed
@brooksdavis brooksdavis deleted the dlopen-program branch May 1, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants