Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/nsswitch/winbindd.c

    r124 r134  
    719719}
    720720
     721/* check if HUP has been received and reload files */
     722void winbind_check_sighup(void)
     723{
     724        if (do_sighup) {
     725
     726                DEBUG(3, ("got SIGHUP\n"));
     727
     728                msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, NULL);
     729                do_sighup = False;
     730        }
     731}
     732
     733/* check if TERM has been received */
     734void winbind_check_sigterm(void)
     735{
     736        if (do_sigterm)
     737                terminate();
     738}
     739
    721740/* Process incoming clients on listen_sock.  We use a tricky non-blocking,
    722741   non-forking, non-threaded model which allows us to handle many
     
    883902        /* Check signal handling things */
    884903
    885         if (do_sigterm)
    886                 terminate();
    887 
    888         if (do_sighup) {
    889 
    890                 DEBUG(3, ("got SIGHUP\n"));
    891 
    892                 msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, NULL);
    893                 do_sighup = False;
    894         }
     904        winbind_check_sigterm();
     905        winbind_check_sighup();
    895906
    896907        if (do_sigusr2) {
Note: See TracChangeset for help on using the changeset viewer.