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

Reload the current page on SIGUSR1 signal #290

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

Conversation

rodarima
Copy link
Member

Fixes: #255

@rodarima rodarima added this to the Release 3.2.0 milestone Oct 25, 2024
@rodarima
Copy link
Member Author

rodarima commented Oct 25, 2024

This only operates on the first tab, even if it is out of focus. Once the first tab is closed, reloading via the signal causes a crash.

We will need to operate only on the "current" tab. If we have multiple windows, I assume we either reload the current tab on all windows, or just one of them.

Let's reload all of them for now.

Reloads the current page on all windows when the SIGUSR1 is received.
This is useful to update the page when it is being edited.

Fixes: #255
}
if (tmp) {
_MSG("gone: tmp=%p tabgroups=%p\n", (void *) tmp, (void *) tabgroups);
free(tmp);
Copy link
Member Author

Choose a reason for hiding this comment

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

Use delete.

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.

Reload current page on SIGUSR1
1 participant