-
Notifications
You must be signed in to change notification settings - Fork 7
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
Terminal exit fails when spawning vivify-server #169
Comments
Interesting! Thanks for reporting this. I never realized that Anyways, should be fixed in #171, could you check that? Thanks! |
@jannis-baum Oh, man, you just beat me to it. I had a different idea of just disowning the function, but I'll see if your commit fixes the issue. Thanks. I'll close out the PR I just made. Edit: Yep, looks like moving the test outside the conditional did the trick. |
I released 0.5.1 with the fix. Thanks again for your help! |
Description
When running the
viv
shell script that starts a new server process in the background and then monitors the process withmonitor_server
, the terminal fails to close properly if the user attempts to exit the terminal while the script is still running. Themonitor_server
function, which continuously checks the server's status, remains attached to the terminal session, preventing the terminal from closing.To Reproduce
viv some_file.md
exit
command to the terminal.Context
Expected Behavior:
The terminal should close normally after starting the script, with all background processes continuing to run independently.
Actual Behavior:
The terminal fails to close and remains open until the monitor_server function or the server process completes. This prevents the terminal from exiting, requiring manual intervention to close the terminal.
Linux (flavor of Linux shouldn't matter for this problem).
Self-compiled.
The issue is purely in the
viv
executable script and how it monitors the server process.The text was updated successfully, but these errors were encountered: