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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

dlopen utility #2337

wants to merge 1 commit into from

Conversation

brooksdavis
Copy link
Member

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.

printf("loaded %s\n", argv[i]);
}
if (seconds != 0 && verbose)
printf("sleeping %d seconds\n", seconds);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
printf("sleeping %d seconds\n", seconds);
printf("sleeping for %d seconds\n", seconds);

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.
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