Re: Use SIGUSR1 to reload the page!
<[email protected]> Fri, 25 Oct 2024 22:51:13 +0200
| Newsgroups | gmane.comp.web.dillo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Rodrigo, Rodrigo Arias <[email protected]> wrote: > I implemented this on the following PR: > > https://github.com/dillo-browser/dillo/pull/290 > > It reloads the focused tabs on all windows of the given Dillo process > when a SIGUSR1 signal arrives. > > Example to reload a local file test.html: > > All Dillo processes: > > echo test.html | entr pkill -SIGUSR1 dillo > > Only one with pid 1234: > > echo test.html | entr kill -SIGUSR1 1234 > > I mostly wanted to quickly reload the changes when I edit an HTML > page, but this can also be used to monitor a remote page over time, > like: > > $ dillo https://twtxt.envs.net/api/plain/tweets & > $ while [ 1 ]; do sleep 10; pkill -SIGUSR1 dillo; done & > > See: https://forums.raspberrypi.com/viewtopic.php?t=330705 > > Could you test it on OpenBSD, I hope the signaling part continues to > work fine there. Nice patch! It seems to be working fine here with no problems. I agree that this is quite useful for editing and monitoring pages, thanks! -Alex _______________________________________________ Dillo-dev mailing list -- dillo-dev-lx9mn2B4QYRWk0Htik3J/[email protected] To unsubscribe send an email to dillo-dev-leave-lx9mn2B4QYRWk0Htik3J/[email protected]