On 2003-03-23 at 17:46 +0100, Christian W. Zuckschwerdt wrote:
What about implementing some signals dillo would react on. I.e. SIGHUP to make dillo reload the page.
First: I know that I haven't submitted any patches yet, so am not qualified to really say much (my patches are for old versions and all useless, thanks to the sterling work of others, coming up with better solutions -- the best way for it to be ;^) ). I'd still like to point out that whilst this seems like a good idea, using SIGHUP for this is IMnsHO a bad idea. The whole thing with daemons using SIGHUP as a trigger to re-read config is because daemons have no controlling terminal, so can't receive a system-generated SIGHUP. Dillo doesn't detach from a terminal, so can. Whether or not Dillo should actually exit on SIGHUP is another matter. There are two signals reserved for user purposes, SIGUSR1 and SIGUSR2. Why not use those? -Phil