diff options
| author | Roy Marples <roy@marples.name> | 2020-04-23 23:45:38 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-04-23 23:45:38 +0100 |
| commit | f10b3ded87b73e0d2e1018781ca874aea166eac0 (patch) | |
| tree | d2e1affc0fc70645fee5613104ef20f301ce4307 /src/privsep-root.c | |
| parent | b18431f9b8feff00fdd9d71532c38723eaf9aad8 (diff) | |
| download | dhcpcd-f10b3ded87b73e0d2e1018781ca874aea166eac0.tar.xz | |
dhcpcd: Fix separation of per interface and per family
While here improve privsep proess titles for this.
Diffstat (limited to 'src/privsep-root.c')
| -rw-r--r-- | src/privsep-root.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/privsep-root.c b/src/privsep-root.c index 95a62f96..a2aa1448 100644 --- a/src/privsep-root.c +++ b/src/privsep-root.c @@ -406,7 +406,13 @@ ps_root_startcb(void *arg) { struct dhcpcd_ctx *ctx = arg; - setproctitle("[privileged actioneer]"); + if (ctx->options & DHCPCD_MASTER) + setproctitle("[privileged actioneer]"); + else + setproctitle("[privileged actioneer] %s%s%s", + ctx->ifv[0], + ctx->options & DHCPCD_IPV4 ? " [ip4]" : "", + ctx->options & DHCPCD_IPV6 ? " [ip6]" : ""); ctx->ps_root_pid = getpid(); return 0; } |
