Changeset 478 for vendor/current/source3/winbindd/winbindd.c
- Timestamp:
- Aug 2, 2010, 6:40:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/winbindd/winbindd.c
r427 r478 373 373 uint8 ret; 374 374 pid_t child_pid; 375 struct sigaction act;376 struct sigaction oldact;377 375 378 376 DEBUG(10, ("winbindd_msg_validate_cache: got validate-cache " … … 384 382 * code can safely use fork/waitpid... 385 383 */ 386 CatchChild();387 384 child_pid = sys_fork(); 388 385 … … 402 399 /* child */ 403 400 401 if (!winbindd_reinit_after_fork(NULL)) { 402 _exit(0); 403 } 404 404 405 /* 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); 414 407 415 408 ret = (uint8)winbindd_validate_cache_nobackup();
Note:
See TracChangeset
for help on using the changeset viewer.