Fix the ifb initial on config reload
authorNeutron Soutmun <neo.neutron@gmail.com>
Sun, 21 Jun 2009 03:09:04 +0000 (10:09 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Sun, 21 Jun 2009 03:09:04 +0000 (10:09 +0700)
  * The ifb does not reinitial when reloading config that cuases the bandwidth
    task does not work correctly after reload.

src/rh-task-bandwidth.c

index 2e3921c..e147c27 100644 (file)
@@ -225,10 +225,12 @@ static void init (struct vserver *vs)
     return;
 
   if (vs->vserver_config->init_flag == VS_RELOAD)
-    return;
+    goto initial;
 
   interfaces_list = append_interface (interfaces_list, 
                                       vs->vserver_config->dev_internal);
+
+initial:
   vs->vserver_config->iface = get_interface (interfaces_list, 
                                              vs->vserver_config->dev_internal);
   iface = vs->vserver_config->iface;