diff options
author | Simo Sorce <idra@samba.org> | 2011-08-16 11:37:41 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2011-08-21 09:05:05 -0400 |
commit | e3736f826b434bcdff5493fc533c11eba9bedc61 (patch) | |
tree | efb8324fd8b29672958195a88c0ab39eed34eb7c /source3/printing | |
parent | ee0c69a25e7a0dca0c54989b1d6887a114d93ed4 (diff) | |
download | samba-e3736f826b434bcdff5493fc533c11eba9bedc61.tar.gz samba-e3736f826b434bcdff5493fc533c11eba9bedc61.tar.bz2 samba-e3736f826b434bcdff5493fc533c11eba9bedc61.zip |
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 <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/spoolssd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |