Changeset a8b045f5f30a07399baf17a451ccc1ffe89fc00e

Show
Ignore:
Timestamp:
06/21/09 10:09:04 (3 years ago)
Author:
Neutron Soutmun <neo.neutron@…>
Children:
c651b1df6cb843dbdb44bf3395551bccc274866d, b625486534f1f2ebc93ebb3f0d2c3c1bc1e3a434
Parents:
01863bb35ee1addfb4ee2537a72e21586da5cfb1
git-committer:
Neutron Soutmun <neo.neutron@…> (06/21/09 10:09:04)
Message:

Fix the ifb initial on config reload

  • The ifb does not reinitial when reloading config that cuases the bandwidth task does not work correctly after reload.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/rh-task-bandwidth.c

    rbae014d ra8b045f  
    226226 
    227227  if (vs->vserver_config->init_flag == VS_RELOAD) 
    228     return; 
     228    goto initial; 
    229229 
    230230  interfaces_list = append_interface (interfaces_list,  
    231231                                      vs->vserver_config->dev_internal); 
     232 
     233initial: 
    232234  vs->vserver_config->iface = get_interface (interfaces_list,  
    233235                                             vs->vserver_config->dev_internal);