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

How to use libcli with multiple processes ? #99

Open
tsavoritesi-vgarg opened this issue Sep 11, 2024 · 1 comment
Open

How to use libcli with multiple processes ? #99

tsavoritesi-vgarg opened this issue Sep 11, 2024 · 1 comment

Comments

@tsavoritesi-vgarg
Copy link

Hello ,

Hope you are doing well.
I am looking at your libcli code in github and have a question. I see the codes and examples where both CLI commands are and cli_loop() part of the same process, and it works fine.

My application has multiple processes listening on the UNIX_AF socket . And I want to provide a single CLI interface to the customer, So do you have any example of how I can implement it ?

Thanks

@RobSanders
Copy link
Collaborator

Hi - our use case hasn't worked this way, and the core data structures in libcli do not have any design features to allow for multiple simultaneous but independent instances. My suggestion would be that your listener on the UNIX_AF socket would spawn a new process (not thread) for each independent instance.

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

No branches or pull requests

2 participants