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

office listener remains open after program execution #33

Open
ilstam opened this issue Feb 18, 2015 · 1 comment
Open

office listener remains open after program execution #33

ilstam opened this issue Feb 18, 2015 · 1 comment

Comments

@ilstam
Copy link
Owner

ilstam commented Feb 18, 2015

Before making any document conversions we have got to start an openoffice/libreoffice listener, in order to enable parallel document conversions.

The listener starts just before the first document conversion happens and - for now - it remains open all the time, even after program termination. The problem is that it starts indirectly with an unoconv command ("unoconv --listener") and as a spawned process there's no easy way to kill it.

Actually, it seems like there's no way to kill spawned processes just using python stdlib and for now I don't want to add an extra dependency to the program.

I leave this open for any better future solutions.

@ilstam
Copy link
Owner Author

ilstam commented Jun 20, 2016

We can consider starting the listener at a specific non-default port:
https://github.com/dagwieers/unoconv#start-your-own-unoconv-listener

It's easy then to kill the listener that listens to this port.

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

1 participant