]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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)
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>

No differences found