]> git.decadent.org.uk Git - nfs-utils.git/commit
statd - only unregister/register once.
authorNeil Brown <neilb@suse.de>
Thu, 29 Mar 2007 03:08:03 +0000 (13:08 +1000)
committerNeil Brown <neilb@suse.de>
Thu, 29 Mar 2007 03:08:03 +0000 (13:08 +1000)
commit25001e18ff31933d1f40b510da969a8cee317310
tree2c2bff0ac8c73ac8e811b917b1aa0230a87ca32e
parent849cdc25d0060621662b7b311e02bcabc92fb4d7
statd - only unregister/register once.

The for loop that restarts on SIGUSR or simu_reboot currently includes
several once-only things, that are probably best taken out of the loop.

We also take the unregister/register out of the loop as if statd does
drop privileges, then the second register won't use a privileged port
properly.

On the whole, cleaner code.

Signed-off-by: Neil Brown <neilb@suse.de>
utils/statd/statd.c