Rename perform_renew() and perform_release() to force_renew() and
force_release().
This commit is contained in:
parent
de47d3b4d6
commit
bef54a23fb
@ -121,7 +121,7 @@ static void show_usage(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* perform a renew */
|
/* perform a renew */
|
||||||
static void perform_renew(void)
|
static void force_renew(void)
|
||||||
{
|
{
|
||||||
log_line("Performing a DHCP renew...");
|
log_line("Performing a DHCP renew...");
|
||||||
retry:
|
retry:
|
||||||
@ -160,7 +160,7 @@ static void perform_renew(void)
|
|||||||
|
|
||||||
|
|
||||||
/* perform a release */
|
/* perform a release */
|
||||||
static void perform_release(void)
|
static void force_release(void)
|
||||||
{
|
{
|
||||||
struct in_addr temp_saddr, temp_raddr;
|
struct in_addr temp_saddr, temp_raddr;
|
||||||
|
|
||||||
@ -203,10 +203,10 @@ static void signal_dispatch()
|
|||||||
}
|
}
|
||||||
switch (si.ssi_signo) {
|
switch (si.ssi_signo) {
|
||||||
case SIGUSR1:
|
case SIGUSR1:
|
||||||
perform_renew();
|
force_renew();
|
||||||
break;
|
break;
|
||||||
case SIGUSR2:
|
case SIGUSR2:
|
||||||
perform_release();
|
force_release();
|
||||||
break;
|
break;
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
log_line("Received SIGTERM. Exiting gracefully.");
|
log_line("Received SIGTERM. Exiting gracefully.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user