ldp: avoid calling write in destructors
[vpp.git] / src / vcl / vppcom.c
index 07136e9..dbb0d65 100644 (file)
@@ -862,8 +862,8 @@ vppcom_app_create (char *app_name)
 
   if (vcm->is_init)
     {
-      clib_warning ("vcl<%u> already initialized", getpid ());
-      return -1;
+      VDBG (1, "already initialized");
+      return VPPCOM_EEXIST;
     }
 
   vcm->is_init = 1;