From: Bernhard R. L. <br...@pc...> - 2009-03-30 08:36:38
|
Attached patch simpliyfies the subserver forking code in lpd_worker.c (moved there from linelist.c). It moved the last users of Setup_lpd_call/Make_lpd_call to Start_worker, which was already used for most others. As those calls are thus intern to lpd_worker.c they are made static and simplified (not putting arrays of fds as pointers into string lists and making new fds explicit arguments, instead of converting them to strings and parsing them back again... ChangeLog | 1 src/common/lpd.c | 88 ++++++++++----------- src/common/lpd_dispatch.c | 14 +-- src/common/lpd_jobs.c | 8 - src/common/lpd_logger.c | 29 ++----- src/common/lpd_worker.c | 181 ++++++++++++++++++--------------------------- src/include/getqueue.h | 4 src/include/linelist.h | 2 src/include/lp.h | 2 src/include/lpd.h | 2 src/include/lpd_dispatch.h | 4 src/include/lpd_jobs.h | 4 src/include/lpd_logger.h | 3 src/include/lpd_worker.h | 4 14 files changed, 145 insertions(+), 201 deletions(-) Hochachtungsvoll, Bernhard R. Link |