summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index fbbc096d..723e3350 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -443,9 +443,11 @@ static void init(int argc,
goto fail_timerwheel;
#if defined PROC_FLOW_STATS
- sprintf(procstr, "proc.%d", getpid());
- /* Don't bail, it just won't show metrics */
- rib_init(procstr);
+ if (strstr(argv[0], "ipcpd") == NULL) {
+ sprintf(procstr, "proc.%d", getpid());
+ /* Don't bail on fail, it just won't show metrics */
+ rib_init(procstr);
+ }
#endif
return;