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 | 70583515c845b3969dc746b4a7937821861c0ebd (patch) | |
| tree | d2e1affc0fc70645fee5613104ef20f301ce4307 /src/privsep-inet.c | |
| parent | 1a1e7aa075784a2ff0a3ab4b6d45aa3b6a83850a (diff) | |
| download | dhcpcd-70583515c845b3969dc746b4a7937821861c0ebd.tar.xz | |
dhcpcd: Fix separation of per interface and per family
While here improve privsep proess titles for this.
Diffstat (limited to 'src/privsep-inet.c')
| -rw-r--r-- | src/privsep-inet.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/privsep-inet.c b/src/privsep-inet.c index 9f1eeab7..a21bd405 100644 --- a/src/privsep-inet.c +++ b/src/privsep-inet.c @@ -93,7 +93,13 @@ ps_inet_startcb(void *arg) struct dhcpcd_ctx *ctx = arg; int ret = 0; - setproctitle("[network proxy]"); + if (ctx->options & DHCPCD_MASTER) + setproctitle("[network proxy]"); + else + setproctitle("[network proxy] %s%s%s", + ctx->ifv[0], + ctx->options & DHCPCD_IPV4 ? " [ip4]" : "", + ctx->options & DHCPCD_IPV6 ? " [ip6]" : ""); /* This end is the main engine, so it's useless for us. */ close(ctx->ps_data_fd); |
