s3-prefork: Fix worker flags handling.
authorSimo Sorce <idra@samba.org>
Tue, 16 Aug 2011 15:37:41 +0000 (11:37 -0400)
committerSimo Sorce <idra@samba.org>
Sun, 21 Aug 2011 13:05:05 +0000 (09:05 -0400)
commite3736f826b434bcdff5493fc533c11eba9bedc61
treeefb8324fd8b29672958195a88c0ab39eed34eb7c
parentee0c69a25e7a0dca0c54989b1d6887a114d93ed4
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>
source3/lib/server_prefork.c
source3/lib/server_prefork.h
source3/printing/spoolssd.c
source3/rpc_server/lsasd.c