Changeset 3899

Show
Ignore:
Timestamp:
03/15/06 21:30:32 (3 years ago)
Author:
morris
Message:

Reload all accounts when receiving a HUP

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wired/trunk/wired/accounts.c

    r3863 r3899  
    594594 
    595595 
     596void wd_accounts_reload_users(void) { 
     597        wi_list_node_t          *node; 
     598        wd_client_t                     *client; 
     599 
     600        wi_list_rdlock(wd_clients); 
     601        WI_LIST_FOREACH(wd_clients, node, client) 
     602                _wd_accounts_reload_client(client); 
     603        wi_list_unlock(wd_clients); 
     604} 
     605 
     606 
     607 
    596608#pragma mark - 
    597609 
  • wired/trunk/wired/accounts.h

    r3863 r3899  
    8383wi_boolean_t                                            wd_accounts_clear_group(wi_string_t *); 
    8484wi_boolean_t                                            wd_accounts_check_privileges(wd_account_t *account); 
     85void                                                            wd_accounts_reload_users(void); 
    8586 
    8687void                                                            wd_reply_privileges(void); 
  • wired/trunk/wired/main.c

    r3849 r3899  
    432432                        case SIGHUP: 
    433433                                wi_log_info(WI_STR("Signal HUP received, reloading configuration")); 
     434 
    434435                                wd_read_config(); 
    435436                                wd_apply_config(); 
    436437                                wd_schedule_config(); 
     438                                 
     439                                wd_accounts_reload_users(); 
    437440                                break; 
    438441