Ignore:
Timestamp:
Aug 2, 2010, 8:16:45 PM (15 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: trunk update to 3.5.4

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/winbindd/winbindd.c

    r429 r480  
    373373        uint8 ret;
    374374        pid_t child_pid;
    375         struct sigaction act;
    376         struct sigaction oldact;
    377375
    378376        DEBUG(10, ("winbindd_msg_validate_cache: got validate-cache "
     
    384382         * code can safely use fork/waitpid...
    385383         */
    386         CatchChild();
    387384        child_pid = sys_fork();
    388385
     
    402399        /* child */
    403400
     401        if (!winbindd_reinit_after_fork(NULL)) {
     402                _exit(0);
     403        }
     404
    404405        /* install default SIGCHLD handler: validation code uses fork/waitpid */
    405         ZERO_STRUCT(act);
    406         act.sa_handler = SIG_DFL;
    407 #ifdef SA_RESTART
    408         /* We *want* SIGALRM to interrupt a system call. */
    409         act.sa_flags = SA_RESTART;
    410 #endif
    411         sigemptyset(&act.sa_mask);
    412         sigaddset(&act.sa_mask,SIGCHLD);
    413         sigaction(SIGCHLD,&act,&oldact);
     406        CatchSignal(SIGCHLD, SIG_DFL);
    414407
    415408        ret = (uint8)winbindd_validate_cache_nobackup();
Note: See TracChangeset for help on using the changeset viewer.