From e3736f826b434bcdff5493fc533c11eba9bedc61 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 16 Aug 2011 11:37:41 -0400 Subject: s3-prefork: Fix worker flags handling. We can't have a clear idea of wether the worker is IDLE or BUSY. The only things we can tell is if it is Alive, whether it is currently Accepting connections or wether it is Exiting soon. Remove PF_WORKER_IDLE, PF_WORKER_BUSY and replace their use with PF_WORKER_ALIVE. Also properly assign PF_WORKER_ACCEPTING so that users of the API can rely on the flag. Signed-off-by: Andreas Schneider Signed-off-by: Simo Sorce --- source3/printing/spoolssd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/printing') diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index e1052ad1f5..76d05fca58 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -437,7 +437,7 @@ static void spoolss_next_client(void *pvt) data = talloc_get_type_abort(pvt, struct spoolss_children_data); if (data->pf->num_clients == 0) { - data->pf->status = PF_WORKER_IDLE; + data->pf->status = PF_WORKER_ALIVE; } if (data->pf->cmds == PF_SRV_MSG_EXIT) { -- cgit