summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-04-22 15:41:22 +0100
committerRoy Marples <roy@marples.name>2017-04-22 15:41:22 +0100
commit9b04fabf77cdc6daff576c83d53c5833738d63d3 (patch)
tree237d6dd3c4c40b4a3e82ded9f27d705b8112f308 /src/dhcpcd.c
parent24abc42d92cfbd3e4681d54c8ad62af6dc7adc92 (diff)
downloaddhcpcd-9b04fabf77cdc6daff576c83d53c5833738d63d3.tar.xz
Don't log anything when printing the pidfile.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 332e3ec3..bc79610e 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -1510,6 +1510,7 @@ main(int argc, char **argv)
#endif
case 'P':
ctx.options |= DHCPCD_PRINT_PIDFILE;
+ logopts &= ~(LOGERR_LOG | LOGERR_ERR);
break;
case 'T':
i = 1;