summaryrefslogtreecommitdiff
path: root/source3/lib/server_prefork.h
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-08-16 11:37:41 -0400
committerSimo Sorce <idra@samba.org>2011-08-21 09:05:05 -0400
commite3736f826b434bcdff5493fc533c11eba9bedc61 (patch)
treeefb8324fd8b29672958195a88c0ab39eed34eb7c /source3/lib/server_prefork.h
parentee0c69a25e7a0dca0c54989b1d6887a114d93ed4 (diff)
downloadsamba-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/lib/server_prefork.h')
-rw-r--r--source3/lib/server_prefork.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/server_prefork.h b/source3/lib/server_prefork.h
index 2685f50700..334b5813a0 100644
--- a/source3/lib/server_prefork.h
+++ b/source3/lib/server_prefork.h
@@ -26,9 +26,8 @@ struct prefork_pool;
enum pf_worker_status {
PF_WORKER_NONE = 0,
- PF_WORKER_IDLE,
+ PF_WORKER_ALIVE,
PF_WORKER_ACCEPTING,
- PF_WORKER_BUSY,
PF_WORKER_EXITING
};