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

Save record before exit on SIGTERM/SIGINT signals #960

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

Conversation

UnkwUsr
Copy link

@UnkwUsr UnkwUsr commented May 6, 2022

For now ssr writes stream to file as it records, so there is no reasons to drop recorded file just because user not explicitly stated that he want to save it.

This PR actually makes it to proper save file on exit.

About code: not sure where to place signal handlers registration, but for now it works.

Original motivation of this was to use ssr just like a cli to make a system-wide binds for start/stop recording. (example from i3 config)

UPD: testing it for about 1 year, works flawlessly in my use case

SergeyMy added a commit to SergeyMy/ssr that referenced this pull request May 24, 2023
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.

None yet

1 participant