work_fork.c (285169) | work_fork.c (298695) |
---|---|
1/* 2 * work_fork.c - fork implementation for blocking worker child. 3 */ 4#include <config.h> 5#include "ntp_workimpl.h" 6 7#ifdef WORK_FORK 8#include <stdio.h> --- 437 unchanged lines hidden (view full) --- 446 * go away promptly. 447 */ 448 if (!atexit_installed) { 449 atexit(&send_worker_home_atexit); 450 atexit_installed = TRUE; 451 } 452 } 453 | 1/* 2 * work_fork.c - fork implementation for blocking worker child. 3 */ 4#include <config.h> 5#include "ntp_workimpl.h" 6 7#ifdef WORK_FORK 8#include <stdio.h> --- 437 unchanged lines hidden (view full) --- 446 * go away promptly. 447 */ 448 if (!atexit_installed) { 449 atexit(&send_worker_home_atexit); 450 atexit_installed = TRUE; 451 } 452 } 453 |
454#ifdef HAVE_DROPROOT | 454#if defined(HAVE_DROPROOT) && !defined(NEED_EARLY_FORK) |
455 /* defer the fork until after root is dropped */ 456 if (droproot && !root_dropped) 457 return; 458#endif 459 if (syslog_file != NULL) 460 fflush(syslog_file); 461 fflush(stdout); 462 fflush(stderr); --- 72 unchanged lines hidden (view full) --- 535 536 /* 537 * And now back to the portable code 538 */ 539 exit_worker(blocking_child_common(c)); 540} 541 542 | 455 /* defer the fork until after root is dropped */ 456 if (droproot && !root_dropped) 457 return; 458#endif 459 if (syslog_file != NULL) 460 fflush(syslog_file); 461 fflush(stdout); 462 fflush(stderr); --- 72 unchanged lines hidden (view full) --- 535 536 /* 537 * And now back to the portable code 538 */ 539 exit_worker(blocking_child_common(c)); 540} 541 542 |
543void worker_global_lock(int inOrOut) 544{ 545 (void)inOrOut; 546} 547 |
|
543#else /* !WORK_FORK follows */ 544char work_fork_nonempty_compilation_unit; 545#endif | 548#else /* !WORK_FORK follows */ 549char work_fork_nonempty_compilation_unit; 550#endif |