Mercurial > hg > dhcpcd
comparison src/dhcpcd.c @ 5552:66dc60bf133d draft
Don't stop control in test
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 25 Nov 2020 14:55:25 +0000 |
| parents | 0c4608a6cc2a |
| children | e65d193a1960 |
comparison
equal
deleted
inserted
replaced
| 5551:0c4608a6cc2a | 5552:66dc60bf133d |
|---|---|
| 2538 | 2538 |
| 2539 exit_failure: | 2539 exit_failure: |
| 2540 i = EXIT_FAILURE; | 2540 i = EXIT_FAILURE; |
| 2541 | 2541 |
| 2542 exit1: | 2542 exit1: |
| 2543 if (control_stop(&ctx) == -1) | 2543 if (!(ctx.options & DHCPCD_TEST) && control_stop(&ctx) == -1) |
| 2544 logerr("%s: control_stop", __func__); | 2544 logerr("%s: control_stop", __func__); |
| 2545 if (ifaddrs != NULL) { | 2545 if (ifaddrs != NULL) { |
| 2546 #ifdef PRIVSEP_GETIFADDRS | 2546 #ifdef PRIVSEP_GETIFADDRS |
| 2547 if (IN_PRIVSEP(&ctx)) | 2547 if (IN_PRIVSEP(&ctx)) |
| 2548 free(ifaddrs); | 2548 free(ifaddrs); |
