LP1204123 SIGUSR2 causes router re-register (Perl/C)
authorBill Erickson <berick@esilibrary.com>
Tue, 23 Jul 2013 16:06:48 +0000 (12:06 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 4 Sep 2013 15:07:58 +0000 (11:07 -0400)
commitab845cdebe7588a7fd4fb67317b7deab557fa210
treebaedd6fb516386ccbe4869384b5f54000d637dfc
parent84d949cc09de9e2689b76541caeae524ab3b1f1e
LP1204123 SIGUSR2 causes router re-register (Perl/C)

When a listener process receives the USR2 signal, the 'register' command
is sent to all known routers.  This allows for the addition of new
routers to running opensrf services.

If a register command is sent to a router for which the process is
already successfully register, the router will safely discard it, so
multiple SIGUSR2 calls are safe.

Minor int => bool clarification repair to existing C shutdown
(prefork_clear) code.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
src/libopensrf/osrf_prefork.c
src/perl/lib/OpenSRF/Server.pm