diff options
| author | Roy Marples <roy@marples.name> | 2020-04-15 16:50:11 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-04-15 16:50:11 +0100 |
| commit | 3110315782738f0da4ce0b3bde1e43fc77ee0591 (patch) | |
| tree | aa4bdeebdd4104dc57d044a16bfa44eeb52a303c /src | |
| parent | f2357e19652d37566f5f76568448de6632cf2e38 (diff) | |
| download | dhcpcd-3110315782738f0da4ce0b3bde1e43fc77ee0591.tar.xz | |
Don't open a control socket in test mode.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dhcpcd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index eb8d5608..7bf52f4f 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2207,7 +2207,8 @@ printpidfile: goto run_loop; #endif - if (control_start(&ctx, + if (!(ctx.options & DHCPCD_TEST) && + control_start(&ctx, ctx.options & DHCPCD_MASTER ? NULL : argv[optind]) == -1) { logerr("%s: control_start", __func__); |
