#193 Re-poke proc file on SIGHUP
Closed: Fixed 6 years ago Opened 6 years ago by rharwood.

This allows NFS to notify us of changes.


I think we should do this conditionally, ie if it didn't work before.
To do that it would be nice to have a static variable inside the function like
static poked = 0;

and something to skip it.

if (poked) return;

The n in the fuction set poked to 1 if it was successful in opening the file and writing to it.

This way we poke the proc file only once if it was unsuccessful before (if it was successful the kernel is already properly initialized.

This is optional, it is probably also ok to be dumb and always poke the kernel on reload if configured to do so.

I don't think it'd be particularly harder to do that, as long as we're sure we'd never need to re-poke a properly initialized kernel.

Metadata Update from @rharwood:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata